Skip to content

Commit 0db4eba

Browse files
authored
Fix async client with resp3 (#2657)
1 parent 753018e commit 0db4eba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: redis/asyncio/client.py

+2
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ def __init__(
176176
auto_close_connection_pool: bool = True,
177177
redis_connect_func=None,
178178
credential_provider: Optional[CredentialProvider] = None,
179+
protocol: Optional[int] = 2,
179180
):
180181
"""
181182
Initialize a new Redis client.
@@ -213,6 +214,7 @@ def __init__(
213214
"health_check_interval": health_check_interval,
214215
"client_name": client_name,
215216
"redis_connect_func": redis_connect_func,
217+
"protocol": protocol,
216218
}
217219
# based on input, setup appropriate connection args
218220
if unix_socket_path is not None:

0 commit comments

Comments
 (0)