Skip to content

Commit

Permalink
rpc_util: remove duplicate Put function
Browse files Browse the repository at this point in the history
  • Loading branch information
hueypark committed Mar 22, 2023
1 parent 76caf74 commit 8f33b9b
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions shared_buffer_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,6 @@ func (p *bufferPool) Get(size int) []byte {
return (*bs)[:size]
}

func (p *bufferPool) Put(bs *[]byte) {
p.Pool.Put(bs)
}

func makeBytesPool(size int) bufferPool {
return bufferPool{
sync.Pool{
Expand All @@ -146,10 +142,6 @@ func (p *fallbackBufferPool) Get(size int) []byte {
return (*bs)[:size]
}

func (p *fallbackBufferPool) Put(bs *[]byte) {
p.Pool.Put(bs)
}

func makeFallbackBytesPool() bufferPool {
return bufferPool{
sync.Pool{
Expand Down

0 comments on commit 8f33b9b

Please sign in to comment.