diff --git a/src/main.rs b/src/main.rs index f389a41..229b3bc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -133,7 +133,7 @@ async fn main() -> Result<(), Box> { .then(|item| { let interval_seconds = cfg.interval_seconds.clone(); Box::pin(async move { - Delay::new(Duration::from_millis( + Delay::new(Duration::from_secs( rand::thread_rng() .gen_range(interval_seconds.min..interval_seconds.max), ))