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 | |
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')
-rw-r--r-- | src/peering/basalt.rs | 2 | ||||
-rw-r--r-- | src/test.rs | 2 |
2 files changed, 2 insertions, 2 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 diff --git a/src/test.rs b/src/test.rs index ecd5450..19759cc 100644 --- a/src/test.rs +++ b/src/test.rs @@ -14,7 +14,7 @@ use crate::NodeID; #[tokio::test(flavor = "current_thread")] async fn test_with_basic_scheduler() { - pretty_env_logger::init(); + env_logger::init(); run_test().await } |