Skip to content

Commit

Permalink
rpc_util: Fix a. vet error
Browse files Browse the repository at this point in the history
  • Loading branch information
hueypark committed Jan 31, 2023
1 parent bae37e3 commit cbaef54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpc_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -994,9 +994,9 @@ func (p *bytesPool) Get(size int) []byte {
if cap(*bs) < size {
*bs = make([]byte, size)
return *bs
} else {
return (*bs)[:size]
}

return (*bs)[:size]
}

func (p *bytesPool) Put(bs *[]byte) {
Expand Down

0 comments on commit cbaef54

Please sign in to comment.