Remove deprecated egress client (#1701)

* remove deprecated egress client

* don't copy mutex
This commit is contained in:
David Colburn
2023-05-09 16:54:32 -07:00
committed by GitHub
parent f543e3f8d0
commit 0a3c22993e
6 changed files with 48 additions and 167 deletions
+1 -11
View File
@@ -18,7 +18,6 @@ import (
"github.com/livekit/livekit-server/pkg/routing"
"github.com/livekit/livekit-server/pkg/telemetry"
"github.com/livekit/protocol/auth"
"github.com/livekit/protocol/egress"
"github.com/livekit/protocol/livekit"
redisLiveKit "github.com/livekit/protocol/redis"
"github.com/livekit/protocol/rpc"
@@ -45,8 +44,7 @@ func InitializeServer(conf *config.Config, currentNode routing.LocalNode) (*Live
telemetry.NewTelemetryService,
getMessageBus,
NewIOInfoService,
getEgressClient,
egress.NewRedisRPCClient,
rpc.NewEgressClient,
getEgressStore,
NewEgressLauncher,
NewEgressService,
@@ -148,14 +146,6 @@ func getMessageBus(rc redis.UniversalClient) psrpc.MessageBus {
return psrpc.NewRedisMessageBus(rc)
}
func getEgressClient(conf *config.Config, nodeID livekit.NodeID, bus psrpc.MessageBus) (rpc.EgressClient, error) {
if conf.Egress.UsePsRPC {
return rpc.NewEgressClient(nodeID, bus)
}
return nil, nil
}
func getEgressStore(s ObjectStore) EgressStore {
switch store := s.(type) {
case *RedisStore: