mirror of
https://github.com/actix/actix-web.git
synced 2024-11-22 17:41:11 +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);
|
self.response = ResponseState::Ready(msg);
|
||||||
break
|
break
|
||||||
},
|
},
|
||||||
Frame::Payload(_) => (),
|
Frame::Payload(_) | Frame::Drain(_) => (),
|
||||||
Frame::Drain(fut) => {
|
|
||||||
self.drain.push(fut);
|
|
||||||
self.stream = TaskStream::Context(context);
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Ok(Async::Ready(None)) => {
|
Ok(Async::Ready(None)) => {
|
||||||
|
|
Loading…
Reference in a new issue