Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
aeyakovenko committed May 17, 2018
1 parent e318ce8 commit 947baac
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/crdt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,7 @@ impl Crdt {
// max number of nodes that we could be converged to
pub fn convergence(&self) -> u64 {
let max = self.remote.values().len() as u64 + 1;
self.remote
.values()
.fold(max, |a, b| std::cmp::min(a, *b))
self.remote.values().fold(max, |a, b| std::cmp::min(a, *b))
}

fn random() -> u64 {
Expand Down

0 comments on commit 947baac

Please sign in to comment.