diff --git a/https-tls/cert-watch/Cargo.toml b/https-tls/cert-watch/Cargo.toml index f3e24600..9351f45d 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 ff482ba7..4aede18f 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"));