From e7345f079ef16443a79203d742eb48cedc37a527 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Wed, 24 Oct 2018 15:02:19 +0200 Subject: [PATCH] comments --- common/buf/reader.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/buf/reader.go b/common/buf/reader.go index 7f74e76a..1d535b4a 100644 --- a/common/buf/reader.go +++ b/common/buf/reader.go @@ -128,10 +128,12 @@ func (r *BufferedReader) Close() error { return common.Close(r.Reader) } +// SingleReader is a Reader that read one Buffer every time. type SingleReader struct { io.Reader } +// ReadMultiBuffer implements Reader. func (r *SingleReader) ReadMultiBuffer() (MultiBuffer, error) { b, err := readOne(r.Reader) if err != nil {