Skip to content

Commit

Permalink
don't wait so long to rebroadcast
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromegn committed Dec 3, 2024
1 parent a13501a commit 7884dd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/corro-agent/src/broadcast/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ async fn handle_broadcasts(
debug!("queueing for re-send");
idle_pendings.push(Box::pin(async move {
// slow our send pace if we've been previously rate limited
let sleep_ms_base = if prev_rate_limited { 1000 } else { 250 };
let sleep_ms_base = if prev_rate_limited { 500 } else { 100 };
// send with increasing latency as we've already sent the updates out
tokio::time::sleep(Duration::from_millis(
sleep_ms_base * send_count as u64,
Expand Down

0 comments on commit 7884dd6

Please sign in to comment.