From bbbfbd4e3178b06c219f66a9a31e36a27ef32d49 Mon Sep 17 00:00:00 2001 From: Dandaedre Date: Sat, 9 Nov 2024 16:32:45 +0100 Subject: [PATCH] Bandaid on the async, not sure it's really working as intended --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 28acf6d..5eaa90e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -21,9 +21,9 @@ async fn main() { let event_context = EventHolder::default(); init_logger().unwrap(); // TODO: Check that this is actually what we want - task::spawn(discord_main_loop()); task::spawn(main_scheduler_loop( - time::interval(time::Duration::from_secs(60 * 10)), + time::interval(time::Duration::from_secs(1)), event_context, )); + discord_main_loop().await; } -- 2.45.1