Skip to content

Commit 4571c91

Browse files
committed
Reduced the max number of queried nodes in topology request
1 parent 1e07acc commit 4571c91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redis/src/cluster_async/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1490,7 +1490,7 @@ where
14901490
async fn refresh_slots_inner(inner: Arc<InnerCore<C>>, curr_retry: usize) -> RedisResult<()> {
14911491
let read_guard = inner.conn_lock.read().await;
14921492
let num_of_nodes = read_guard.len();
1493-
const MAX_REQUESTED_NODES: usize = 50;
1493+
const MAX_REQUESTED_NODES: usize = 10;
14941494
let num_of_nodes_to_query = std::cmp::min(num_of_nodes, MAX_REQUESTED_NODES);
14951495
let (new_slots, topology_hash) = calculate_topology_from_random_nodes(
14961496
&inner,

0 commit comments

Comments
 (0)