Complete merging of network addition branch

This commit is contained in:
Age Manning
2019-06-23 12:34:00 +10:00
parent cf459b60a9
commit 84ea5adffe
11 changed files with 12 additions and 22 deletions

View File

@@ -55,7 +55,7 @@ impl<TSubstream> Discovery<TSubstream> {
/// We have discovered an address for a peer, add it to known peers.
pub fn add_connected_address(&mut self, peer_id: &PeerId, address: Multiaddr) {
// pass the address on to kademlia
self.discovery.add_connected_address(peer_id, address);
self.discovery.add_address(peer_id, address);
}
}