style(server): remove FutureExt::boxed to unify project style

This commit is contained in:
Atkins
2019-09-03 20:41:36 +08:00
committed by Sean McArthur
parent 69c15cae5c
commit d406602c5d

View File

@@ -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)) {