Explorar o código

explictly use the io.Writer instance for writing net.Buffers

Darien Raymond %!s(int64=7) %!d(string=hai) anos
pai
achega
ae4dece6b0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      common/buf/writer.go

+ 1 - 1
common/buf/writer.go

@@ -22,7 +22,7 @@ func (w *BufferToBytesWriter) WriteMultiBuffer(mb MultiBuffer) error {
 	defer mb.Release()
 
 	bs := mb.ToNetBuffers()
-	_, err := bs.WriteTo(w)
+	_, err := bs.WriteTo(w.Writer)
 	return err
 }