mirror of
https://github.com/livekit/livekit.git
synced 2026-04-03 21:25:40 +00:00
20 lines
213 B
Go
20 lines
213 B
Go
package sfu
|
|
|
|
import (
|
|
"sync"
|
|
)
|
|
|
|
var (
|
|
PacketFactory *sync.Pool
|
|
)
|
|
|
|
func init() {
|
|
// Init packet factory
|
|
PacketFactory = &sync.Pool{
|
|
New: func() interface{} {
|
|
b := make([]byte, 1460)
|
|
return &b
|
|
},
|
|
}
|
|
}
|