Skip to content

Commit ed348a1

Browse files
committed
Clarify comment, since there is no __del__ on asyncio.connection.ConnectionPool
1 parent 05518ca commit ed348a1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

redis/asyncio/client.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,8 @@ def __init__(
214214
"""
215215
kwargs: Dict[str, Any]
216216
# auto_close_connection_pool only has an effect if connection_pool is
217-
# None. This is a similar feature to the missing __del__ to resolve #1103,
218-
# but it accounts for whether a user wants to manually close the connection
219-
# pool, as a similar feature to ConnectionPool's __del__.
217+
# None. It is assumed that if connection_pool is not None, the user
218+
# wants to manage the connection pool themselves.
220219
self.auto_close_connection_pool = (
221220
auto_close_connection_pool if connection_pool is None else False
222221
)

0 commit comments

Comments
 (0)