/// Reports a peer for some action.
///
/// If the peer doesn't exist, log a warning and insert defaults.
Reports a peer for some action.
If the peer doesn't exist, log a warning and insert defaults.
Reports a peer for some action . If the peer doesn ' t exist log a warning and insert defaults .
pub fn report_peer(&mut self, peer_id: &PeerId, action: PeerAction) {
        //TODO: Check these. There are double disconnects for example (Age comment)
        // self.update_reputations();
        self.network_globals
            .peers
            .write()
            .add_reputation(peer_id, action.rep_change());
        // self.update_reputations();
    }
pub fn report_peer ( & mut self , peer_id : & PeerId , action : PeerAction ) { //TODO: Check these. There are double disconnects for example (Age comment) // self.update_reputations(); self . network_globals . peers . write ( ) . add_reputation ( peer_id , action . rep_change ( ) ) ; // self.update_reputations(); }
Reports a peer for some action.
Reports a peer for some action .
&mut self
peer_id
&PeerId
action
PeerAction