From d44b680a8708a46004fe3cdf58c701e5f0779514 Mon Sep 17 00:00:00 2001
From: iximeow <git@iximeow.net>
Date: Thu, 29 Dec 2022 03:24:24 +0000
Subject: actually yield in main loop waiting

---
 src/ci_driver.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src')

diff --git a/src/ci_driver.rs b/src/ci_driver.rs
index 8b69936..47892d6 100644
--- a/src/ci_driver.rs
+++ b/src/ci_driver.rs
@@ -499,6 +499,6 @@ async fn main() {
                 activate_job(Arc::clone(&dbctx), &job, &mut channel).await;
             }
         }
-        std::thread::sleep(std::time::Duration::from_millis(100));
+        tokio::time::sleep(std::time::Duration::from_millis(100)).await;
     }
 }
-- 
cgit v1.1