updated to ion-sfu v1.9.1, removed package bufferFactory

This commit is contained in:
David Zhao
2021-03-01 14:49:46 -08:00
parent e8d2701937
commit 03d0a8c047
14 changed files with 69 additions and 102 deletions
-8
View File
@@ -8,8 +8,6 @@ import (
"github.com/livekit/livekit-server/pkg/config"
"github.com/livekit/livekit-server/pkg/logger"
"github.com/livekit/livekit-server/pkg/routing"
"github.com/livekit/livekit-server/pkg/rtc"
"github.com/livekit/livekit-server/proto/livekit"
)
@@ -20,14 +18,8 @@ var ServiceSet = wire.NewSet(
NewRoomManager,
config.GetAudioConfig,
wire.Bind(new(livekit.RoomService), new(*RoomService)),
externalIpFromNode,
)
// helper to construct RTCConfig
func externalIpFromNode(currentNode routing.LocalNode) rtc.ExternalIP {
return rtc.ExternalIP(currentNode.Ip)
}
func handleError(w http.ResponseWriter, status int, msg string) {
l := logger.Desugar().WithOptions(zap.AddCallerSkip(1))
l.Debug("error handling request", zap.String("error", msg), zap.Int("status", status))