aboutsummaryrefslogtreecommitdiff
path: root/src/peering
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-09-02 14:02:08 +0200
committerAlex Auvolat <alex@adnab.me>2022-09-02 14:02:08 +0200
commitc865cc9f9c848293e06938cf3827bd0afd677ed6 (patch)
tree18c75c1dcce2502b9ac2688b07aa576269db45bc /src/peering
parentd75146fb8157dd03c156e5f7ce4834fa1d72b581 (diff)
parent8c73b276557405e5d7eac8139b6f8a79d0379200 (diff)
downloadnetapp-c865cc9f9c848293e06938cf3827bd0afd677ed6.tar.gz
netapp-c865cc9f9c848293e06938cf3827bd0afd677ed6.zip
Merge branch 'main' into fix-ping
Diffstat (limited to 'src/peering')
-rw-r--r--src/peering/basalt.rs2
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