1
0
mirror of https://github.com/actix/examples synced 2024-11-23 22:41:07 +01:00

chore: simplify cert-watch runtime

This commit is contained in:
Rob Ede 2024-02-06 22:12:55 +00:00
parent bd45c20874
commit 051e84268a
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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"));