aboutsummaryrefslogtreecommitdiff
path: root/network/protocol/sideband64k
diff options
context:
space:
mode:
Diffstat (limited to 'network/protocol/sideband64k')
-rw-r--r--network/protocol/sideband64k/chunk_writer.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/network/protocol/sideband64k/chunk_writer.go b/network/protocol/sideband64k/chunk_writer.go
index f95f75d8..9ee4e9f8 100644
--- a/network/protocol/sideband64k/chunk_writer.go
+++ b/network/protocol/sideband64k/chunk_writer.go
@@ -62,3 +62,8 @@ func (cw *ChunkWriter) ReadFrom(r io.Reader) (int64, error) {
}
}
}
+
+// Flush flushes buffered output in the underlying transport.
+func (cw *ChunkWriter) Flush() error {
+ return cw.enc.Flush()
+}