Skip to content

Commit

Permalink
Changed the default value of reinitialize_steps from 10 to 5
Browse files Browse the repository at this point in the history
  • Loading branch information
barshaul committed Nov 2, 2022
1 parent 04dfd25 commit b43b1dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion redis/asyncio/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def __init__(
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,
Expand Down
4 changes: 2 additions & 2 deletions redis/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ def __init__(
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,
Expand Down Expand Up @@ -1698,7 +1698,7 @@ def __init__(
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,
):
Expand Down

0 comments on commit b43b1dc

Please sign in to comment.