From ae4dece6b0470f8031113067ec814d802c815b6a Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Mon, 12 Feb 2018 14:35:42 +0100 Subject: [PATCH] explictly use the io.Writer instance for writing net.Buffers --- common/buf/writer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/buf/writer.go b/common/buf/writer.go index 85771cff5..4d26fb979 100644 --- a/common/buf/writer.go +++ b/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 }