1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 22:49:21 +02:00

update examples

This commit is contained in:
Nikolay Kim
2019-11-26 17:16:33 +06:00
parent f73f97353b
commit f2b3dc5625
4 changed files with 27 additions and 23 deletions

View File

@ -19,7 +19,8 @@ async fn no_params() -> &'static str {
}
#[cfg(unix)]
fn main() -> std::io::Result<()> {
#[actix_rt::main]
async fn main() -> std::io::Result<()> {
std::env::set_var("RUST_LOG", "actix_server=info,actix_web=info");
env_logger::init();
@ -44,7 +45,8 @@ fn main() -> std::io::Result<()> {
})
.bind_uds("/Users/fafhrd91/uds-test")?
.workers(1)
.run()
.start()
.await
}
#[cfg(not(unix))]