Use tokio_util::CancellationToken everywhere

This commit is contained in:
Igor Katson 2023-12-07 08:10:17 +00:00
parent 53868ad45e
commit bed7433d8e
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
16 changed files with 176 additions and 178 deletions

View file

@ -1900,6 +1900,7 @@ dependencies = [
"size_format",
"tokio",
"tokio-stream",
"tokio-util",
"tower-http",
"tracing",
"url",
@ -1944,6 +1945,7 @@ dependencies = [
"parking_lot",
"serde",
"tokio",
"tokio-util",
"tracing",
"url",
"uuid",
@ -1970,6 +1972,7 @@ dependencies = [
"serde_json",
"tokio",
"tokio-stream",
"tokio-util",
"tracing",
]

View file

@ -101,7 +101,7 @@ async fn api_from_config(
librqbit::http_api::HttpApi::new(session.clone(), Some(rust_log_reload_tx.clone()))
.make_http_api_and_run(config.http_api.listen_addr, config.http_api.read_only);
session.spawn("http api", error_span!("http_api"), http_api_task);
session.spawn(error_span!("http_api"), http_api_task);
}
Ok(api)
}