diff --git a/scylla/src/transport/cluster.rs b/scylla/src/transport/cluster.rs index 643d67845e..d88ee233e8 100644 --- a/scylla/src/transport/cluster.rs +++ b/scylla/src/transport/cluster.rs @@ -292,7 +292,6 @@ impl ClusterData { HashMap::with_capacity(metadata.peers.len()); let mut ring: Vec<(Token, Arc)> = Vec::new(); let mut datacenters: HashMap = HashMap::new(); - let mut all_nodes: Vec> = Vec::with_capacity(metadata.peers.len()); for peer in metadata.peers { // Take existing Arc if possible, otherwise create new one @@ -344,8 +343,6 @@ impl ClusterData { for token in peer_tokens { ring.push((token, node.clone())); } - - all_nodes.push(node); } Self::update_rack_count(&mut datacenters);