changed ms to secs in timer
This commit is contained in:
parent
c9bf51baee
commit
5caab575af
|
@ -133,7 +133,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
|
||||||
.then(|item| {
|
.then(|item| {
|
||||||
let interval_seconds = cfg.interval_seconds.clone();
|
let interval_seconds = cfg.interval_seconds.clone();
|
||||||
Box::pin(async move {
|
Box::pin(async move {
|
||||||
Delay::new(Duration::from_millis(
|
Delay::new(Duration::from_secs(
|
||||||
rand::thread_rng()
|
rand::thread_rng()
|
||||||
.gen_range(interval_seconds.min..interval_seconds.max),
|
.gen_range(interval_seconds.min..interval_seconds.max),
|
||||||
))
|
))
|
||||||
|
|
Loading…
Reference in New Issue