refactor: streamline asynchronous handling in config and resolve setup

This commit is contained in:
Tunglies
2025-08-29 06:16:42 +08:00
parent 165018bcbc
commit 23d7dc86d5
4 changed files with 25 additions and 29 deletions
+2 -4
View File
@@ -123,10 +123,8 @@ impl Config {
// 在单独的任务中发送通知
if let Some((msg_type, msg_content)) = validation_result {
AsyncHandler::spawn(move || async move {
sleep(Duration::from_secs(2)).await;
handle::Handle::notice_message(msg_type, &msg_content);
});
sleep(Duration::from_secs(2)).await;
handle::Handle::notice_message(msg_type, &msg_content);
}
Ok(())