Skip to content

Commit 42dc860

Browse files
committed
temporary patch for using resp3 on v5.0.0
was fixed in redis/redis-py PR 3477 and available in redis==6.0.0
1 parent 28cc65c commit 42dc860

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

redis/asyncio/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ async def on_connect(self) -> None:
309309
self._parser.on_connect(self)
310310
if len(auth_args) == 1:
311311
auth_args = ["default", auth_args[0]]
312-
await self.send_command("HELLO", self.protocol, "AUTH", *auth_args)
312+
await self.send_command("HELLO", self.protocol, "AUTH", *auth_args, check_health=False)
313313
response = await self.read_response()
314314
if response.get(b"proto") != int(self.protocol) and response.get(
315315
"proto"

redis/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ def on_connect(self):
320320
self._parser.on_connect(self)
321321
if len(auth_args) == 1:
322322
auth_args = ["default", auth_args[0]]
323-
self.send_command("HELLO", self.protocol, "AUTH", *auth_args)
323+
self.send_command("HELLO", self.protocol, "AUTH", *auth_args, check_health=False)
324324
response = self.read_response()
325325
# if response.get(b"proto") != self.protocol and response.get(
326326
# "proto"

0 commit comments

Comments
 (0)