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:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user