From 051e84268a8c1e4d6d38348f062ec2e160d73c1e Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Tue, 6 Feb 2024 22:12:55 +0000 Subject: [PATCH] chore: simplify cert-watch runtime --- https-tls/cert-watch/Cargo.toml | 2 +- https-tls/cert-watch/src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/https-tls/cert-watch/Cargo.toml b/https-tls/cert-watch/Cargo.toml index f3e2460..9351f45 100644 --- a/https-tls/cert-watch/Cargo.toml +++ b/https-tls/cert-watch/Cargo.toml @@ -14,5 +14,5 @@ log.workspace = true notify = "6" rustls.workspace = true rustls-pemfile = "1" -tokio = { workspace = true, features = ["time", "rt-multi-thread", "macros"] } +tokio = { workspace = true, features = ["time", "rt", "macros"] } parking_lot = "0.12" diff --git a/https-tls/cert-watch/src/main.rs b/https-tls/cert-watch/src/main.rs index ff482ba..4aede18 100644 --- a/https-tls/cert-watch/src/main.rs +++ b/https-tls/cert-watch/src/main.rs @@ -22,7 +22,7 @@ async fn index(req: HttpRequest) -> HttpResponse { ) } -#[tokio::main(worker_threads = 2)] +#[tokio::main(flavor = "current_thread")] async fn main() -> eyre::Result<()> { color_eyre::install()?; env_logger::init_from_env(env_logger::Env::default().default_filter_or("info"));