1
0
mirror of https://github.com/actix/examples synced 2025-06-26 17:17:42 +02:00

docs: improve docs about tokio::main

This commit is contained in:
Rob Ede
2024-07-21 10:04:59 +01:00
parent bf22fecbcd
commit 0950e1624d
8 changed files with 6 additions and 3 deletions

View File

@ -47,7 +47,6 @@ async fn chat_ws(
Ok(res)
}
// note that the actor-based WebSocket examples would NOT work under `tokio::main`
#[tokio::main(flavor = "current_thread")]
async fn main() -> io::Result<()> {
env_logger::init_from_env(env_logger::Env::new().default_filter_or("info"));