// Add address from the list of addresses that are tried when dialing the remote.
Add address from the list of addresses that are tried when dialing the remote.
Add address from the list of addresses that are tried when dialing the remote .
pub fn add_addrs(&mut self, peer: PeerId, addr: Multiaddr) {
        let addrs = self.peers.entry(peer).or_default();
        if !addrs.known.contains(&addr) {
            addrs.known.push_back(addr);
        }
    }
pub fn add_addrs ( & mut self , peer : PeerId , addr : Multiaddr ) { let addrs = self . peers . entry ( peer ) . or_default ( ) ; if ! addrs . known . contains ( & addr ) { addrs . known . push_back ( addr ) ; } }
Add address from the list of addresses that are tried when dialing the remote.
Add address from the list of addresses that are tried when dialing the remote .
&mut self
peer
PeerId
addr
Multiaddr