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 0510583 commit cb4e1ea
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 @@ -101,7 +101,7 @@ func (p *bufferPool) Get(size int) []byte {
}

func (p *bufferPool) Put(i *[]byte) {
if len(*i) > p.defaultSize {
if cap(*i) > p.defaultSize {
return
}
runtime.SetFinalizer(i, func(i *[]byte) {
Expand Down

0 comments on commit cb4e1ea

Please sign in to comment.