Merge branch 'master' into refactor/ServerWorker_size

This commit is contained in:
fakeshadow 2021-04-08 20:24:27 -07:00 committed by GitHub
commit 161834cbc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -407,7 +407,7 @@ impl Accept {
}
fn accept(&mut self, sockets: &mut Slab<ServerSocketInfo>, token: usize) {
loop {
while !self.backpressure {
let info = sockets
.get_mut(token)
.expect("ServerSocketInfo is removed from Slab");