perf(server): skip noop AddrStream inner flush

This commit is contained in:
Sean McArthur
2018-05-30 15:33:36 -07:00
parent 1b5fb3cc5e
commit bfb2ab8644

View File

@@ -215,8 +215,9 @@ mod addr_stream {
}
#[inline]
fn flush(&mut self ) -> io::Result<()> {
self.inner.flush()
fn flush(&mut self) -> io::Result<()> {
// TcpStream::flush is a noop, so skip calling it...
Ok(())
}
}