summaryrefslogtreecommitdiff
path: root/redis/asyncio/cluster.py
diff options
context:
space:
mode:
authorrapidia <rapidia@users.noreply.github.com>2022-05-30 19:19:19 +0900
committerGitHub <noreply@github.com>2022-05-30 13:19:19 +0300
commit0d3da4e1bb3660285694b27c19c8d2498f0d42e7 (patch)
tree03db3d1ea6a0993b4ff83224682b2b16259ff39b /redis/asyncio/cluster.py
parent9167a0e10d5acd9d76edd887300c75cfeb07a7c3 (diff)
downloadredis-py-0d3da4e1bb3660285694b27c19c8d2498f0d42e7.tar.gz
set default response_callbacks to redis.asyncio.cluster.ClusterNode (#2201)
* set default response_callbacks to redis.asyncio.cluster.ClusterNode * add test case for ClusterNode class * fix lint error * merge test case into `test_startup_nodes`
Diffstat (limited to 'redis/asyncio/cluster.py')
-rw-r--r--redis/asyncio/cluster.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/redis/asyncio/cluster.py b/redis/asyncio/cluster.py
index 10a5675..fa91872 100644
--- a/redis/asyncio/cluster.py
+++ b/redis/asyncio/cluster.py
@@ -725,7 +725,7 @@ class ClusterNode:
server_type: Optional[str] = None,
max_connections: int = 2 ** 31,
connection_class: Type[Connection] = Connection,
- response_callbacks: Dict = None,
+ response_callbacks: Dict = RedisCluster.RESPONSE_CALLBACKS,
**connection_kwargs,
) -> None:
if host == "localhost":