pub fn connected_peers(&self) -> Vec<Arc<RwLock<Peer>>> {
		let mut res = self.peers.read().unwrap().values().cloned().collect::<Vec<_>>();
		thread_rng().shuffle(&mut res);
		res
	}
/// Get vec of peers we are currently connected to.
Get vec of peers we are currently connected to.
Get vec of peers we are currently connected to .
pub fn connected_peers(&self) -> Vec<Arc<RwLock<Peer>>> {
		let mut res = self.peers.read().unwrap().values().cloned().collect::<Vec<_>>();
		thread_rng().shuffle(&mut res);
		res
	}
pub fn connected_peers ( & self ) -> Vec < Arc < RwLock < Peer > > > { let mut res = self . peers . read ( ) . unwrap ( ) . values ( ) . cloned ( ) . collect :: < Vec < _ > > ( ) ; thread_rng ( ) . shuffle ( & mut res ) ; res }
Get vec of peers we are currently connected to.
Get vec of peers we are currently connected to .
&self