Skip to content

Commit

Permalink
chore: revert back to add into RT
Browse files Browse the repository at this point in the history
  • Loading branch information
maqi committed Dec 13, 2024
1 parent e5511a0 commit 64ea79c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions ant-networking/src/cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -507,12 +507,7 @@ impl SwarmDriver {
NetworkSwarmCmd::AddPeerAddresses { addresses, sender } => {
cmd_string = "AddPeerAddresses";
for (peer, addr) in addresses {
if let Some(kbucket) = self.swarm.behaviour_mut().kademlia.kbucket(peer) {
let ilog2 = kbucket.range().0.ilog2();
let peers = self.bootstrap_peers.entry(ilog2).or_default();
peers.insert(peer);
}
let _ = self.dial(addr);
let _update = self.swarm.behaviour_mut().kademlia.add_address(&peer, addr);
}
let _ = sender.send(());
}
Expand Down

0 comments on commit 64ea79c

Please sign in to comment.