aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/peering/basalt.rs2
-rw-r--r--src/test.rs2
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
}