fn add_peer(&mut self, peer_id: PeerId, slot_type: SlotType) {
		if !self.contains(&peer_id) {
			match slot_type {
				SlotType::Common => self.common.insert(peer_id, ()),
				SlotType::Reserved => self.reserved.insert(peer_id, ()),
			};
		}
	}
/// Adds new peer of a given type.
Adds new peer of a given type.
Adds new peer of a given type .
fn add_peer(&mut self, peer_id: PeerId, slot_type: SlotType) {
		if !self.contains(&peer_id) {
			match slot_type {
				SlotType::Common => self.common.insert(peer_id, ()),
				SlotType::Reserved => self.reserved.insert(peer_id, ()),
			};
		}
	}
fn add_peer ( & mut self , peer_id : PeerId , slot_type : SlotType ) { if ! self . contains ( & peer_id ) { match slot_type { SlotType :: Common => self . common . insert ( peer_id , ( ) ) , SlotType :: Reserved => self . reserved . insert ( peer_id , ( ) ) , } ; } }
Adds new peer of a given type.
Adds new peer of a given type .
&mut self
peer_id
PeerId
slot_type
SlotType
&mut self
peer_id
PeerId
slot_type
SlotType