diff options
Diffstat (limited to 'network/protocol/pktline/chunk_writer.go')
| -rw-r--r-- | network/protocol/pktline/chunk_writer.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/network/protocol/pktline/chunk_writer.go b/network/protocol/pktline/chunk_writer.go index b258ff20..3e1a8c36 100644 --- a/network/protocol/pktline/chunk_writer.go +++ b/network/protocol/pktline/chunk_writer.go @@ -63,3 +63,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() +} |
