From 66ccd59f074a50f07bb4b99abe9c9d92e404ea04 Mon Sep 17 00:00:00 2001 From: JesusPerez Date: Sun, 12 Sep 2021 23:01:53 +0100 Subject: [PATCH] chore: remove non-sense pause for schedtasks --- src/main.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 97ade3a..57fd4d3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -332,7 +332,6 @@ pub async fn main() -> BxDynResult<()> { //std::io::Result<()> { eprintln!("Task {} no schedule defined",&it.name); continue; } - let pause = it.pause; let res = match it.name.as_str() { "monitor" => sched.add(Job::new(&it.schedule.to_owned(), move |uuid, _l| { @@ -354,9 +353,6 @@ pub async fn main() -> BxDynResult<()> { //std::io::Result<()> { continue; }, }; - if pause > 0 { - tokio::time::sleep(tokio::time::Duration::from_secs(pause)).await; - } match res { Ok(_) => { continue; }, Err(e) => {