// Move address in the list to the back i.g. the last known address that will be tried when dialing the target.
Move address in the list to the back i.g. the last known address that will be tried when dialing the target.
Move address in the list to the back i . g . the last known address that will be tried when dialing the target .
pub fn deprioritize_addr(&mut self, peer: PeerId, addr: Multiaddr) {
        let peer_addr = self.peers.entry(peer).or_default();
        if peer_addr.known.back() != Some(&addr) {
            peer_addr.known.retain(|a| a != &addr);
            peer_addr.known.push_back(addr);
        }
    }
pub fn deprioritize_addr ( & mut self , peer : PeerId , addr : Multiaddr ) { let peer_addr = self . peers . entry ( peer ) . or_default ( ) ; if peer_addr . known . back ( ) != Some ( & addr ) { peer_addr . known . retain ( | a | a != & addr ) ; peer_addr . known . push_back ( addr ) ; } }
Move address in the list to the back i.g.
Move address in the list to the back i . g .
&mut self
peer
PeerId
addr
Multiaddr