style(server): remove FutureExt::boxed to unify project style
This commit is contained in:
@@ -106,10 +106,11 @@ impl AddrIncoming {
|
||||
}
|
||||
self.timeout = None;
|
||||
|
||||
let mut accept_fut = self.listener.accept().boxed();
|
||||
let accept = self.listener.accept();
|
||||
futures_util::pin_mut!(accept);
|
||||
|
||||
loop {
|
||||
match accept_fut.poll_unpin(cx) {
|
||||
match accept.poll_unpin(cx) {
|
||||
Poll::Ready(Ok((socket, addr))) => {
|
||||
if let Some(dur) = self.tcp_keepalive_timeout {
|
||||
if let Err(e) = socket.set_keepalive(Some(dur)) {
|
||||
|
||||
Reference in New Issue
Block a user