From 5caab575af88eb267936a9eaf2c3bd3500e61f45 Mon Sep 17 00:00:00 2001 From: Emile Date: Tue, 6 Jul 2021 03:42:16 +0100 Subject: [PATCH] changed ms to secs in timer --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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), ))