mirror of
https://github.com/actix/examples
synced 2025-06-28 09:50:36 +02:00
update deps
This commit is contained in:
@ -6,7 +6,7 @@ edition = "2018"
|
||||
workspace = ".."
|
||||
|
||||
[dependencies]
|
||||
actix-web = "2.0.0-rc"
|
||||
actix-web = "2.0.0"
|
||||
actix-rt = "1.0.0"
|
||||
bytes = "0.5"
|
||||
env_logger = "0.6"
|
||||
|
@ -114,7 +114,7 @@ impl ImplNetwork for ObjNetwork {
|
||||
delay_for(Duration::from_secs(d)).await;
|
||||
Ok(String::from("pong"))
|
||||
}
|
||||
.boxed_local()
|
||||
.boxed_local()
|
||||
}
|
||||
|
||||
fn get(&self) -> u32 {
|
||||
@ -153,6 +153,6 @@ async fn main() -> std::io::Result<()> {
|
||||
})
|
||||
.bind("127.0.0.1:8080")
|
||||
.unwrap()
|
||||
.start()
|
||||
.run()
|
||||
.await
|
||||
}
|
||||
|
Reference in New Issue
Block a user