summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoriximeow <git@iximeow.net>2022-12-29 03:24:24 +0000
committeriximeow <git@iximeow.net>2022-12-29 03:24:24 +0000
commitd44b680a8708a46004fe3cdf58c701e5f0779514 (patch)
treed7877be7b264383f669025138504686d780bf898 /src
parentb2cad73c4d04f2ef84e3e7ac8f94fb9a4fbf37c6 (diff)
actually yield in main loop waiting
Diffstat (limited to 'src')
-rw-r--r--src/ci_driver.rs2
1 files changed, 1 insertions, 1 deletions
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;
}
}