mirror of
https://github.com/actix/examples
synced 2025-06-26 09:17:41 +02:00
update deps
This commit is contained in:
@ -6,6 +6,6 @@ edition = "2018"
|
||||
description = "Run actix-web in separate thread"
|
||||
|
||||
[dependencies]
|
||||
actix-web = "2.0.0-rc"
|
||||
actix-web = "2.0.0"
|
||||
actix-rt = "1.0.0"
|
||||
env_logger = "0.6"
|
@ -21,7 +21,7 @@ fn run_app(tx: mpsc::Sender<Server>) -> std::io::Result<()> {
|
||||
.service(web::resource("/").to(index))
|
||||
})
|
||||
.bind("127.0.0.1:8080")?
|
||||
.start();
|
||||
.run();
|
||||
|
||||
// send server controller to main thread
|
||||
let _ = tx.send(srv.clone());
|
||||
|
Reference in New Issue
Block a user