1
0
Fork 0

Add support for specifying redis url to support unix sockets

This commit is contained in:
Robert George 2023-01-14 14:52:54 -08:00
parent 788a33ee8a
commit 207abed654
6 changed files with 12 additions and 22 deletions

View file

@ -4,12 +4,7 @@ import redis
from bookwyrm import settings
r = redis.Redis(
host=settings.REDIS_ACTIVITY_HOST,
port=settings.REDIS_ACTIVITY_PORT,
password=settings.REDIS_ACTIVITY_PASSWORD,
db=settings.REDIS_ACTIVITY_DB_INDEX,
)
r = redis.from_url(settings.REDIS_ACTIVITY_URL)
def erase_streams():