From d3bcfbec5eba9628247ca53d5e90cb39901c3485 Mon Sep 17 00:00:00 2001 From: Dennis Schwerdel Date: Fri, 20 Nov 2015 13:39:57 +0100 Subject: [PATCH] Still sending to all peers to avoid timeouts --- src/ethcloud.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ethcloud.rs b/src/ethcloud.rs index cdf1042..dd8395e 100644 --- a/src/ethcloud.rs +++ b/src/ethcloud.rs @@ -237,11 +237,9 @@ impl EthCloud { peer_num = 10; } } - let mut seed = precise_time_ns() as u32; - let peers = self.peers.subset(peer_num, seed); + let peers = self.peers.subset(peer_num, precise_time_ns() as u32); let msg = udpmessage::Message::Peers(peers); - seed ^= (precise_time_ns() >> 32) as u32; - for addr in &self.peers.subset(peer_num, seed) { + for addr in &self.peers.as_vec() { try!(self.send_msg(addr, &msg)); } self.next_peerlist = SteadyTime::now() + self.update_freq;