/// Updates the state of the peer as disconnected.
Updates the state of the peer as disconnected.
Updates the state of the peer as disconnected .
pub fn notify_disconnect(&mut self, peer_id: &PeerId) {
        //self.update_reputations();
        self.network_globals.peers.write().disconnect(peer_id);
        // remove the ping and status timer for the peer
        self.ping_peers.remove(peer_id);
        self.status_peers.remove(peer_id);
    }
pub fn notify_disconnect ( & mut self , peer_id : & PeerId ) { //self.update_reputations(); self . network_globals . peers . write ( ) . disconnect ( peer_id ) ; // remove the ping and status timer for the peer self . ping_peers . remove ( peer_id ) ; self . status_peers . remove ( peer_id ) ; }
Updates the state of the peer as disconnected.
Updates the state of the peer as disconnected .
&mut self
peer_id
&PeerId