fn on_peer_connected(&mut self, who: PeerId, debug_info: String) {
		trace!(target: "sync", "Connecting {}: {}", who, debug_info);
		self.handshaking_peers.insert(who.clone(), HandshakingPeer { timestamp: time::Instant::now() });
		self.send_status(who);
	}
/// Called when a new peer is connected
Called when a new peer is connected
Called when a new peer is connected
fn on_peer_connected(&mut self, who: PeerId, debug_info: String) {
		trace!(target: "sync", "Connecting {}: {}", who, debug_info);
		self.handshaking_peers.insert(who.clone(), HandshakingPeer { timestamp: time::Instant::now() });
		self.send_status(who);
	}
fn on_peer_connected ( & mut self , who : PeerId , debug_info : String ) { trace ! ( target " " " " who debug_info ) ; self . handshaking_peers . insert ( who . clone ( ) , HandshakingPeer { timestamp : time :: Instant :: now ( ) } ) ; self . send_status ( who ) ; }
Called when a new peer is connected
Called when a new peer is connected
&mut self
who
PeerId
debug_info
String
&mut self
who
PeerId
debug_info
String