// Remove address from the list of addresses that are tried when dialing the remote.
Remove address from the list of addresses that are tried when dialing the remote.
Remove address from the list of addresses that are tried when dialing the remote .
pub fn remove_address(&mut self, peer: &PeerId, addrs: &Multiaddr) {
        if let Some(PeerAddress { known, .. }) = self.peers.get_mut(peer) {
            known.retain(|a| a != addrs);
        }
    }
pub fn remove_address ( & mut self , peer : & PeerId , addrs : & Multiaddr ) { if let Some ( PeerAddress { known , .. } ) = self . peers . get_mut ( peer ) { known . retain ( | a | a != addrs ) ; } }
Remove address from the list of addresses that are tried when dialing the remote.
Remove address from the list of addresses that are tried when dialing the remote .
&mut self
peer
&PeerId
addrs
&Multiaddr