1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-19 12:25:37 +02:00

flush is useless

This commit is contained in:
Nikolay Kim
2018-01-14 19:28:34 -08:00
parent 89a89e7b18
commit a7c24aace1
6 changed files with 14 additions and 39 deletions

View File

@@ -108,11 +108,6 @@ impl Writer for H2Writer {
self.written
}
#[inline]
fn flush(&mut self) -> Poll<(), io::Error> {
Ok(Async::Ready(()))
}
fn start(&mut self, req: &mut HttpMessage, msg: &mut HttpResponse) -> io::Result<WriterState> {
// prepare response
self.flags.insert(Flags::STARTED);