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

pull/865/head
Darien Raymond 2018-02-12 14:35:42 +01:00
parent 7391b2439e
commit ae4dece6b0
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
1 changed files with 1 additions and 1 deletions

View File

@ -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
}