diff options
author | Alex Auvolat <alex@adnab.me> | 2022-09-02 14:15:02 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-09-02 14:15:02 +0200 |
commit | 9bf29a7a18f0d42d4a9ee54b3a164569bce33608 (patch) | |
tree | 3e12bcd89cb19ed6f8c4d3987bc32b159182b9bf /src/peering/basalt.rs | |
parent | f6ad1d0fab340e77fbfcb3488a98c342d334838e (diff) | |
parent | c865cc9f9c848293e06938cf3827bd0afd677ed6 (diff) | |
download | netapp-9bf29a7a18f0d42d4a9ee54b3a164569bce33608.tar.gz netapp-9bf29a7a18f0d42d4a9ee54b3a164569bce33608.zip |
Merge branch 'fix-ping' into stream-body
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 310077f..2c27dba 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 |