mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-08-02 03:00:17 +03:00
Rearranged aioredis.from_url parameters
This commit is contained in:
parent
680cfcc652
commit
93ed0e283b
|
@ -4,7 +4,7 @@ from aioredis import from_url, Redis
|
|||
|
||||
|
||||
async def init_redis_pool(host: str, password: str) -> AsyncIterator[Redis]:
|
||||
session = from_url(f"redis://{host}", encoding="utf-8", password=password, decode_responses=True)
|
||||
session = from_url(f"redis://{host}", password=password, encoding="utf-8", decode_responses=True)
|
||||
yield session
|
||||
session.close()
|
||||
await session.wait_closed()
|
||||
|
|
Loading…
Reference in New Issue
Block a user