diff --git a/common/buf/writer.go b/common/buf/writer.go index 25a3d03f..2ea3cad9 100644 --- a/common/buf/writer.go +++ b/common/buf/writer.go @@ -27,10 +27,6 @@ func (w *BufferToBytesWriter) WriteMultiBuffer(mb MultiBuffer) error { } func (w *BufferToBytesWriter) ReadFrom(reader io.Reader) (int64, error) { - if readerFrom, ok := w.Writer.(io.ReaderFrom); ok { - return readerFrom.ReadFrom(reader) - } - var sc SizeCounter err := Copy(NewReader(reader), w, CountSize(&sc)) return sc.Size, err