Skip to content

Commit

Permalink
hi
Browse files Browse the repository at this point in the history
  • Loading branch information
dycw committed Sep 16, 2024
1 parent b3944db commit 3d88a26
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/utilities/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from __future__ import annotations

__version__ = "0.55.3"
__version__ = "0.55.4"
6 changes: 5 additions & 1 deletion src/utilities/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -1539,7 +1539,11 @@ async def yield_client_async(
try:
yield client
finally:
await client.aclose()
match client.connection_pool:
case redis.ConnectionPool() as pool:
pool.disconnect(inuse_connections=False)
case redis.asyncio.ConnectionPool() as pool:
await pool.disconnect(inuse_connections=False)


@contextmanager
Expand Down

0 comments on commit 3d88a26

Please sign in to comment.