Fix: put correctly pool
This commit is contained in:
parent
d71324069d
commit
85f4cb23fc
@ -27,5 +27,5 @@ func GetBytesBuffer() *protobytes.BytesWriter {
|
|||||||
|
|
||||||
func PutBytesBuffer(buf *protobytes.BytesWriter) {
|
func PutBytesBuffer(buf *protobytes.BytesWriter) {
|
||||||
buf.Reset()
|
buf.Reset()
|
||||||
bufferPool.Put(buf)
|
bytesBufferPool.Put(buf)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user