diff options
author | Alex Auvolat <alex@adnab.me> | 2022-09-02 14:02:08 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-09-02 14:02:08 +0200 |
commit | c865cc9f9c848293e06938cf3827bd0afd677ed6 (patch) | |
tree | 18c75c1dcce2502b9ac2688b07aa576269db45bc /src/peering/basalt.rs | |
parent | d75146fb8157dd03c156e5f7ce4834fa1d72b581 (diff) | |
parent | 8c73b276557405e5d7eac8139b6f8a79d0379200 (diff) | |
download | netapp-c865cc9f9c848293e06938cf3827bd0afd677ed6.tar.gz netapp-c865cc9f9c848293e06938cf3827bd0afd677ed6.zip |
Merge branch 'main' into fix-ping
Diffstat (limited to 'src/peering/basalt.rs')
-rw-r--r-- | src/peering/basalt.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peering/basalt.rs b/src/peering/basalt.rs index 7f77995..cd70c2b 100644 --- a/src/peering/basalt.rs +++ b/src/peering/basalt.rs @@ -138,7 +138,7 @@ impl BasaltView { let mut ret = vec![]; let mut rng = thread_rng(); for _i in 0..count { - let idx = rng.gen_range(0, possibles.len()); + let idx = rng.gen_range(0..possibles.len()); ret.push(self.slots[possibles[idx]].peer.unwrap()); } ret |