This commit is contained in:
Chris Lu 2021-04-02 02:22:59 -07:00
parent 8e404a1433
commit 319743d330

View file

@ -6,6 +6,7 @@ import (
) )
var bufferCounter int64 var bufferCounter int64
func GetBuffer() *bytebufferpool.ByteBuffer { func GetBuffer() *bytebufferpool.ByteBuffer {
defer func() { defer func() {
atomic.AddInt64(&bufferCounter, 1) atomic.AddInt64(&bufferCounter, 1)