distribute the sync from workers more evenly

This commit is contained in:
Ruben Fiszel
2022-11-21 18:30:58 +01:00
parent 80c11aa314
commit 3eedb7901e
+2 -1
View File
@@ -453,7 +453,8 @@ pub async fn run_worker(
}
#[cfg(feature = "enterprise")]
let mut last_sync = Instant::now();
let mut last_sync =
Instant::now() + Duration.from_secs(rand::thread_rng().gen_range(0..NUM_SECS_SYNC));
let (same_worker_tx, mut same_worker_rx) = mpsc::channel::<Uuid>(5);