Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Weizhen Wang <[email protected]>
  • Loading branch information
hawkingrei committed Feb 8, 2024
1 parent 542ec24 commit 970bef1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/client/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (p *bufferPool) Get(size int) []byte {

func (p *bufferPool) Put(i *[]byte) {
runtime.SetFinalizer(i, func(i *[]byte) {
(*i) = (*i)[:0]
clear(*i)
p.Pool.Put(i)
})
}
Expand Down

0 comments on commit 970bef1

Please sign in to comment.