Remove redundant copyBufferPool from relay

This commit is contained in:
9seconds
2026-02-23 10:12:25 +01:00
parent 3e75e4fa63
commit ee524abdb5
2 changed files with 3 additions and 23 deletions
-19
View File
@@ -1,19 +0,0 @@
package relay
import "sync"
var copyBufferPool = sync.Pool{
New: func() any {
rv := make([]byte, copyBufferSize)
return &rv
},
}
func acquireCopyBuffer() *[]byte {
return copyBufferPool.Get().(*[]byte) //nolint: forcetypeassert
}
func releaseCopyBuffer(buf *[]byte) {
copyBufferPool.Put(buf)
}