Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hansieodendaal committed Sep 10, 2024
1 parent 3f38620 commit 15d3ae1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions comms/dht/src/connectivity/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand All @@ -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());
}
Expand Down

0 comments on commit 15d3ae1

Please sign in to comment.