aboutsummaryrefslogtreecommitdiff
path: root/src/peering
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-09-02 14:00:52 +0200
committerAlex Auvolat <alex@adnab.me>2022-09-02 14:00:52 +0200
commit8c73b276557405e5d7eac8139b6f8a79d0379200 (patch)
treebdcba3ed4d198277fed3987cc9ef341588cc1fa5 /src/peering
parent648e015e3a73b96973343e0a1f861c9ea41cc24d (diff)
downloadnetapp-update-deps.tar.gz
netapp-update-deps.zip
Update dependenciesupdate-deps
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