mirror of https://github.com/fafhrd91/actix-net
add changelog, use plain match instead of matches! per comment
This commit is contained in:
parent
0bfa947d6e
commit
9f968bfb05
|
@ -2,6 +2,7 @@
|
|||
|
||||
## Unreleased - 2021-xx-xx
|
||||
* Hidden `ServerBuilder::start` method has been removed. Use `ServerBuilder::run`. [#246]
|
||||
* Add retry for EINTR(`io::Interrupted`) in `Accept`'s poll loop.
|
||||
|
||||
[#246]: https://github.com/actix/actix-net/pull/246
|
||||
|
||||
|
|
|
@ -162,10 +162,13 @@ impl Accept {
|
|||
|
||||
loop {
|
||||
if let Err(e) = self.poll.poll(&mut events, None) {
|
||||
if matches!(e.kind(), std::io::ErrorKind::Interrupted) {
|
||||
continue;
|
||||
} else {
|
||||
panic!("Poll error: {}", e);
|
||||
match e.kind() {
|
||||
std::io::ErrorKind::Interrupted => {
|
||||
continue;
|
||||
}
|
||||
_ => {
|
||||
panic!("Poll error: {}", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue