about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2024-08-01 20:06:16 +0300
committerVika <vika@fireburn.ru>2024-08-01 20:40:32 +0300
commitd3e2cc0b49f6c5e9385ac55b55ddc337afc3ef4e (patch)
tree787f4d080081626cc6167d2aad81764369edca09 /src
parent4ca0c24b1989fcd12c453d428af70f58456f7651 (diff)
downloadkittybox-d3e2cc0b49f6c5e9385ac55b55ddc337afc3ef4e.tar.zst
Simplify jobset creation a little
Diffstat (limited to 'src')
-rw-r--r--src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index d10822b..90fa196 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -133,7 +133,8 @@ async fn main() {
     let cookie_key = axum_extra::extract::cookie::Key::generate();
 
     let cancellation_token = tokio_util::sync::CancellationToken::new();
-    let jobset = Arc::new(tokio::sync::Mutex::new(tokio::task::JoinSet::<()>::new()));
+    let jobset: Arc<Mutex<JoinSet<()>>> = Default::default();
+
     let http: reqwest::Client = {
         #[allow(unused_mut)]
         let mut builder = reqwest::Client::builder()