Skip to content

Commit c84da66

Browse files
authored
Cherry pick #7595 to v1.66.x release branch (#7621)
1 parent 12487c8 commit c84da66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mem/buffer_slice.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
package mem
2020

2121
import (
22-
"compress/flate"
2322
"io"
2423
)
2524

@@ -126,7 +125,8 @@ func (s BufferSlice) Reader() Reader {
126125
// Remaining(), which returns the number of unread bytes remaining in the slice.
127126
// Buffers will be freed as they are read.
128127
type Reader interface {
129-
flate.Reader
128+
io.Reader
129+
io.ByteReader
130130
// Close frees the underlying BufferSlice and never returns an error. Subsequent
131131
// calls to Read will return (0, io.EOF).
132132
Close() error

0 commit comments

Comments
 (0)