feat: 支持各种任务结束之后的 delay 配置 (#148)

This commit is contained in:
ᴀᴍᴛᴏᴀᴇʀ
2024-07-23 22:29:25 +08:00
committed by GitHub
parent d46881aea6
commit 3a8f33d273
8 changed files with 68 additions and 14 deletions
+1 -2
View File
@@ -9,7 +9,6 @@ mod downloader;
mod error;
mod utils;
mod workflow;
use std::time::Duration;
use once_cell::sync::Lazy;
use tokio::time;
@@ -74,6 +73,6 @@ async fn main() {
info!("稍后再看处理完毕");
info!("本轮任务执行完毕,等待下一轮执行");
}
time::sleep(Duration::from_secs(CONFIG.interval)).await;
time::sleep(time::Duration::from_secs(CONFIG.interval)).await;
}
}