Skip to content

Commit 7884dd6

Browse files
committed
don't wait so long to rebroadcast
1 parent a13501a commit 7884dd6

File tree

1 file changed

+1
-1
lines changed
  • crates/corro-agent/src/broadcast

1 file changed

+1
-1
lines changed

crates/corro-agent/src/broadcast/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ async fn handle_broadcasts(
728728
debug!("queueing for re-send");
729729
idle_pendings.push(Box::pin(async move {
730730
// slow our send pace if we've been previously rate limited
731-
let sleep_ms_base = if prev_rate_limited { 1000 } else { 250 };
731+
let sleep_ms_base = if prev_rate_limited { 500 } else { 100 };
732732
// send with increasing latency as we've already sent the updates out
733733
tokio::time::sleep(Duration::from_millis(
734734
sleep_ms_base * send_count as u64,

0 commit comments

Comments
 (0)