From c84da66adc1625df8cb42708967507f880b4a6e9 Mon Sep 17 00:00:00 2001 From: Purnesh Dixit Date: Wed, 11 Sep 2024 23:39:38 +0530 Subject: [PATCH] Cherry pick #7595 to v1.66.x release branch (#7621) --- mem/buffer_slice.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mem/buffer_slice.go b/mem/buffer_slice.go index 2d70b5a02f8c..228e9c2f20f2 100644 --- a/mem/buffer_slice.go +++ b/mem/buffer_slice.go @@ -19,7 +19,6 @@ package mem import ( - "compress/flate" "io" ) @@ -126,7 +125,8 @@ func (s BufferSlice) Reader() Reader { // Remaining(), which returns the number of unread bytes remaining in the slice. // Buffers will be freed as they are read. type Reader interface { - flate.Reader + io.Reader + io.ByteReader // Close frees the underlying BufferSlice and never returns an error. Subsequent // calls to Read will return (0, io.EOF). Close() error