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:
parent
bd45c20874
commit
051e84268a
@ -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"
|
||||
|
@ -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"));
|
||||
|
Loading…
Reference in New Issue
Block a user