mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-10-01 12:20:39 +00:00
Merge pull request #224 from seanmonstar/nop-flush
make TcpStream::flush() a noop
This commit is contained in:
commit
8379b87c53
@ -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(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user