Skip to content

Commit 542ec24

Browse files
committed
test
Signed-off-by: Weizhen Wang <[email protected]>
1 parent 76a72b3 commit 542ec24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: internal/client/pool.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ func (p *bufferPool) Get(size int) []byte {
101101
}
102102

103103
func (p *bufferPool) Put(i *[]byte) {
104-
(*i) = (*i)[:0]
105104
runtime.SetFinalizer(i, func(i *[]byte) {
105+
(*i) = (*i)[:0]
106106
p.Pool.Put(i)
107107
})
108108
}

0 commit comments

Comments
 (0)