pub fn add_peer(&mut self, peer_id: PeerId) {
        if self.peers.insert(peer_id.clone()) {
            self.bitswap.connect(peer_id.clone());
            self.events.push(ForestBehaviourEvent::PeerDialed(peer_id));
        }
    }
/// Adds peer to the peer set.
Adds peer to the peer set.
Adds peer to the peer set .
pub fn add_peer(&mut self, peer_id: PeerId) {
        if self.peers.insert(peer_id.clone()) {
            self.bitswap.connect(peer_id.clone());
            self.events.push(ForestBehaviourEvent::PeerDialed(peer_id));
        }
    }
pub fn add_peer ( & mut self , peer_id : PeerId ) { if self . peers . insert ( peer_id . clone ( ) ) { self . bitswap . connect ( peer_id . clone ( ) ) ; self . events . push ( ForestBehaviourEvent :: PeerDialed ( peer_id ) ) ; } }
Adds peer to the peer set.
Adds peer to the peer set .
&mut self
peer_id
PeerId