mirror of
https://github.com/go-micro/go-micro.git
synced 2025-11-29 21:47:44 +02:00
14 lines
198 B
Go
14 lines
198 B
Go
package transport
|
|
|
|
import "sync"
|
|
|
|
var http2BufPool = sync.Pool{
|
|
New: func() interface{} {
|
|
return make([]byte, DefaultBufSizeH2)
|
|
},
|
|
}
|
|
|
|
func getHTTP2BufPool() *sync.Pool {
|
|
return &http2BufPool
|
|
}
|