changed ms to secs in timer

This commit is contained in:
Emile 2021-07-06 03:42:16 +01:00
parent c9bf51baee
commit 5caab575af
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
.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),
))