Browse Source

comments

pull/1343/head
Darien Raymond 6 years ago
parent
commit
e7345f079e
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
  1. 2
      common/buf/reader.go

2
common/buf/reader.go

@ -128,10 +128,12 @@ func (r *BufferedReader) Close() error {
return common.Close(r.Reader) return common.Close(r.Reader)
} }
// SingleReader is a Reader that read one Buffer every time.
type SingleReader struct { type SingleReader struct {
io.Reader io.Reader
} }
// ReadMultiBuffer implements Reader.
func (r *SingleReader) ReadMultiBuffer() (MultiBuffer, error) { func (r *SingleReader) ReadMultiBuffer() (MultiBuffer, error) {
b, err := readOne(r.Reader) b, err := readOne(r.Reader)
if err != nil { if err != nil {

Loading…
Cancel
Save