From 15d3ae1273dabadf9b92416b7b8000b98339571f Mon Sep 17 00:00:00 2001 From: Hansie Odendaal Date: Tue, 10 Sep 2024 16:28:06 +0200 Subject: [PATCH] review comments --- comms/dht/src/connectivity/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comms/dht/src/connectivity/mod.rs b/comms/dht/src/connectivity/mod.rs index dd903a0b66..b0294e9184 100644 --- a/comms/dht/src/connectivity/mod.rs +++ b/comms/dht/src/connectivity/mod.rs @@ -872,7 +872,7 @@ impl DhtConnectivity { let addresses = self.peer_manager.get_peer_multi_addresses(peer).await?; if !addresses .iter() - .any(|addr| self.config.excluded_dial_addresses.contains(addr.address())) + .all(|addr| self.config.excluded_dial_addresses.contains(addr.address())) { neighbours.push(peer.clone()); } @@ -884,7 +884,7 @@ impl DhtConnectivity { let addresses = self.peer_manager.get_peer_multi_addresses(peer).await?; if !addresses .iter() - .any(|addr| self.config.excluded_dial_addresses.contains(addr.address())) + .all(|addr| self.config.excluded_dial_addresses.contains(addr.address())) { random_pool.push(peer.clone()); }