Files
livekit-3d/pkg/sfu/sfu.go
T
cnderrauberandjie.zeng c47ad5e323 export structure & functions for relay (#214)
* export structure & functions for relay

Co-authored-by: jie.zeng <zengjie9004@gmail.com>
2021-11-30 14:08:32 +08:00

25 lines
370 B
Go

package sfu
import (
"sync"
"github.com/go-logr/logr"
)
// Logger is an implementation of logr.Logger. If is not provided - will be turned off.
var Logger logr.Logger = logr.Discard()
var (
PacketFactory *sync.Pool
)
func init() {
// Init packet factory
PacketFactory = &sync.Pool{
New: func() interface{} {
b := make([]byte, 1460)
return &b
},
}
}