We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4571c91 commit b954618Copy full SHA for b954618
redis/src/cluster_async/mod.rs
@@ -1448,12 +1448,14 @@ where
1448
}
1449
drop(read_guard);
1450
1451
- Self::refresh_connections(
1452
- inner,
1453
- failed_connections,
1454
- RefreshConnectionType::OnlyManagementConnection,
1455
- )
1456
- .await;
+ if !failed_connections.is_empty() {
+ Self::refresh_connections(
+ inner,
+ failed_connections,
+ RefreshConnectionType::OnlyManagementConnection,
+ )
1457
+ .await;
1458
+ }
1459
1460
false
1461
0 commit comments