diff options
author | Bar Shaul <barshaul@amazon.com> | 2022-11-02 16:46:52 +0200 |
---|---|---|
committer | Bar Shaul <barshaul@amazon.com> | 2022-11-02 16:47:33 +0200 |
commit | b43b1dcc04fa5510ccbb81ac36b79420c6281b9f (patch) | |
tree | c12271da3f9d096bf72843640102721e2e4721ff | |
parent | 04dfd25f1b153da4afd27d50db7d0d2f1cce3c8c (diff) | |
download | redis-py-b43b1dcc04fa5510ccbb81ac36b79420c6281b9f.tar.gz |
Changed the default value of reinitialize_steps from 10 to 5
-rw-r--r-- | redis/asyncio/cluster.py | 2 | ||||
-rw-r--r-- | redis/cluster.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/redis/asyncio/cluster.py b/redis/asyncio/cluster.py index 460e396..1993015 100644 --- a/redis/asyncio/cluster.py +++ b/redis/asyncio/cluster.py @@ -217,7 +217,7 @@ class RedisCluster(AbstractRedis, AbstractRedisCluster, AsyncRedisClusterCommand startup_nodes: Optional[List["ClusterNode"]] = None, require_full_coverage: bool = True, read_from_replicas: bool = False, - reinitialize_steps: int = 10, + reinitialize_steps: int = 5, cluster_error_retry_attempts: int = 3, connection_error_retry_attempts: int = 3, max_connections: int = 2**31, diff --git a/redis/cluster.py b/redis/cluster.py index d3f7f78..e9a3f94 100644 --- a/redis/cluster.py +++ b/redis/cluster.py @@ -432,7 +432,7 @@ class RedisCluster(AbstractRedisCluster, RedisClusterCommands): cluster_error_retry_attempts: int = 3, retry: Optional["Retry"] = None, require_full_coverage: bool = False, - reinitialize_steps: int = 10, + reinitialize_steps: int = 5, read_from_replicas: bool = False, dynamic_startup_nodes: bool = True, url: Optional[str] = None, @@ -1698,7 +1698,7 @@ class ClusterPipeline(RedisCluster): startup_nodes: Optional[List["ClusterNode"]] = None, read_from_replicas: bool = False, cluster_error_retry_attempts: int = 3, - reinitialize_steps: int = 10, + reinitialize_steps: int = 5, lock=None, **kwargs, ): |