1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-01-17 21:34:32 +01:00

fix guide example

This commit is contained in:
Nikolay Kim 2017-12-28 12:27:46 -08:00
parent 783e19c1bf
commit d8b0ce88a5

View File

@ -55,7 +55,7 @@ fn main() {
.bind("127.0.0.1:0").expect("Can not bind to 127.0.0.1:0")
.spawn();
let _ = addr.call_fut(dev::StopServer).wait(); // <- Send `StopServer` message to server.
let _ = addr.call_fut(dev::StopServer{graceful: true}).wait(); // <- Send `StopServer` message to server.
}
```