From d3e2cc0b49f6c5e9385ac55b55ddc337afc3ef4e Mon Sep 17 00:00:00 2001 From: Vika Date: Thu, 1 Aug 2024 20:06:16 +0300 Subject: Simplify jobset creation a little --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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>> = Default::default(); + let http: reqwest::Client = { #[allow(unused_mut)] let mut builder = reqwest::Client::builder() -- cgit 1.4.1