Skip to content

Commit 0951770

Browse files
committed
add "disconnect_on_error" argument to SentinelManagedConnection
1 parent 3651506 commit 0951770

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

redis/asyncio/sentinel.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,14 @@ async def read_response(
6767
self,
6868
disable_decoding: bool = False,
6969
timeout: Optional[float] = None,
70+
*,
71+
disconnect_on_error: Optional[float] = True,
7072
):
7173
try:
7274
return await super().read_response(
7375
disable_decoding=disable_decoding,
7476
timeout=timeout,
77+
disconnect_on_error=disconnect_on_error,
7578
)
7679
except ReadOnlyError:
7780
if self.connection_pool.is_master:

0 commit comments

Comments
 (0)