This commit is contained in:
Anatoly Yakovenko 2018-05-24 23:41:58 -07:00 committed by Greg Fitzgerald
parent 342cc7350a
commit 8b02e0f57c
1 changed files with 1 additions and 1 deletions

View File

@ -348,7 +348,7 @@ impl Crdt {
fn gossip_request(&self) -> Result<(SocketAddr, Protocol)> {
let options: Vec<_> = self.table.values().filter(|v| v.id != self.me).collect();
if options.len() < 1 {
info!("crdt too small for gossip");
trace!("crdt too small for gossip");
return Err(Error::CrdtTooSmall);
}
let n = (Self::random() as usize) % options.len();