mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-29 00:00:11 +02:00
Merge pull request #224 from seanmonstar/nop-flush
make TcpStream::flush() a noop
This commit is contained in:
+1
-1
@@ -505,7 +505,7 @@ impl Write for TcpStream {
|
|||||||
self.io.write(buf)
|
self.io.write(buf)
|
||||||
}
|
}
|
||||||
fn flush(&mut self) -> io::Result<()> {
|
fn flush(&mut self) -> io::Result<()> {
|
||||||
self.io.flush()
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user