Skip to content

Commit b43b1dc

Browse files
committed
Changed the default value of reinitialize_steps from 10 to 5
1 parent 04dfd25 commit b43b1dc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

redis/asyncio/cluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def __init__(
217217
startup_nodes: Optional[List["ClusterNode"]] = None,
218218
require_full_coverage: bool = True,
219219
read_from_replicas: bool = False,
220-
reinitialize_steps: int = 10,
220+
reinitialize_steps: int = 5,
221221
cluster_error_retry_attempts: int = 3,
222222
connection_error_retry_attempts: int = 3,
223223
max_connections: int = 2**31,

redis/cluster.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ def __init__(
432432
cluster_error_retry_attempts: int = 3,
433433
retry: Optional["Retry"] = None,
434434
require_full_coverage: bool = False,
435-
reinitialize_steps: int = 10,
435+
reinitialize_steps: int = 5,
436436
read_from_replicas: bool = False,
437437
dynamic_startup_nodes: bool = True,
438438
url: Optional[str] = None,
@@ -1698,7 +1698,7 @@ def __init__(
16981698
startup_nodes: Optional[List["ClusterNode"]] = None,
16991699
read_from_replicas: bool = False,
17001700
cluster_error_retry_attempts: int = 3,
1701-
reinitialize_steps: int = 10,
1701+
reinitialize_steps: int = 5,
17021702
lock=None,
17031703
**kwargs,
17041704
):

0 commit comments

Comments
 (0)