1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-10-21 17:33:59 +00:00

simlify code

This commit is contained in:
Nikolay Kim 2017-11-30 18:27:27 -08:00
parent f53f35f364
commit 7135c0163b

View file

@ -399,12 +399,7 @@ impl Task {
self.response = ResponseState::Ready(msg);
break
},
Frame::Payload(_) => (),
Frame::Drain(fut) => {
self.drain.push(fut);
self.stream = TaskStream::Context(context);
break
}
Frame::Payload(_) | Frame::Drain(_) => (),
}
},
Ok(Async::Ready(None)) => {