mirror of
https://github.com/ntex-rs/ntex.git
synced 2025-04-05 13:57:39 +03:00
simplify server start method
This commit is contained in:
parent
4f6145e5c7
commit
13cbfc877d
9 changed files with 20 additions and 17 deletions
|
@ -93,7 +93,7 @@ fn main() {
|
|||
.body(Body::Empty)
|
||||
})))
|
||||
.bind("127.0.0.1:8080").unwrap()
|
||||
.start().unwrap();
|
||||
.start();
|
||||
|
||||
println!("Started http server: 127.0.0.1:8080");
|
||||
let _ = sys.run();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue