Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion broadcaster/_backends/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ def __init__(self, url: str):
self._host = parsed_url.hostname or "localhost"
self._port = parsed_url.port or 6379
self._password = parsed_url.password or None
self._username = parsed_url.username or None

async def connect(self) -> None:
kwargs = {"host": self._host, "port": self._port, "password": self._password}
kwargs = {"host": self._host, "port": self._port, "password": self._password, "username": self._username}
self._pub_conn = await asyncio_redis.Connection.create(**kwargs)
self._sub_conn = await asyncio_redis.Connection.create(**kwargs)
self._subscriber = await self._sub_conn.start_subscribe()
Expand Down