Skip to content

Commit

Permalink
Remove random backoff for p2p
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierHecart committed May 3, 2024
1 parent 6ca1e47 commit 33b5ebe
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions zenoh/src/net/routing/hat/p2p_peer/gossip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
use std::convert::TryInto;

use petgraph::graph::NodeIndex;
use rand::Rng;
use vec_map::VecMap;
use zenoh_buffers::{
writer::{DidntWrite, HasWriter},
Expand Down Expand Up @@ -429,11 +428,6 @@ impl Network {
.await
.is_none()
{
// random backoff
let sleep_time = std::time::Duration::from_millis(
rand::thread_rng().gen_range(0..100),
);
tokio::time::sleep(sleep_time).await;
runtime.connect_peer(&zid, &locators).await;
runtime
.start_conditions()
Expand Down

0 comments on commit 33b5ebe

Please sign in to comment.