mirror of
https://github.com/actix/actix-web.git
synced 2025-01-22 06:58:06 +00:00
fix guide example
This commit is contained in:
parent
783e19c1bf
commit
d8b0ce88a5
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue