mirror of
https://github.com/actix/actix-web.git
synced 2024-11-22 09:31:10 +00:00
simlify code
This commit is contained in:
parent
f53f35f364
commit
7135c0163b
1 changed files with 1 additions and 6 deletions
|
@ -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)) => {
|
||||
|
|
Loading…
Reference in a new issue