1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-31 17:07:01 +02:00

Fix wrong service to socket binding

This commit is contained in:
Nikolay Kim
2018-11-14 14:20:33 -08:00
parent dba86fbbf8
commit 741b3fb1c0
3 changed files with 24 additions and 5 deletions

View File

@@ -40,7 +40,9 @@ impl Message for StopServer {
pub(crate) struct Token(usize);
impl Token {
pub(crate) fn next(&self) -> Token {
Token(self.0 + 1)
pub(crate) fn next(&mut self) -> Token {
let token = Token(self.0 + 1);
self.0 += 1;
token
}
}
}