Rearranged aioredis.from_url parameters

This commit is contained in:
smirnovskoe 2022-07-31 09:55:20 -07:00
parent 680cfcc652
commit 93ed0e283b

View File

@ -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()