mirror of
https://github.com/TrustTunnel/TrustTunnel.git
synced 2026-04-28 03:39:53 +00:00
Make flush do nothing by default
This commit is contained in:
parent
791d1906a5
commit
7b93fde43d
1 changed files with 2 additions and 2 deletions
|
|
@ -70,9 +70,9 @@ pub(crate) trait Sink: Send {
|
|||
async fn wait_writable(&mut self) -> io::Result<()>;
|
||||
|
||||
/// Flush all intermediately buffered contents.
|
||||
/// By default, just waits for the writable state.
|
||||
/// By default, does nothing.
|
||||
async fn flush(&mut self) -> io::Result<()> {
|
||||
self.wait_writable().await
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue