Remove deprecated ingress rpc (#1439)
* remove legacy ingress rpcs * remove from io service
This commit is contained in:
+1
-16
@@ -20,7 +20,6 @@ import (
|
||||
"github.com/livekit/livekit-server/pkg/utils"
|
||||
"github.com/livekit/protocol/auth"
|
||||
"github.com/livekit/protocol/egress"
|
||||
"github.com/livekit/protocol/ingress"
|
||||
"github.com/livekit/protocol/livekit"
|
||||
redisLiveKit "github.com/livekit/protocol/redis"
|
||||
"github.com/livekit/protocol/rpc"
|
||||
@@ -51,11 +50,9 @@ func InitializeServer(conf *config.Config, currentNode routing.LocalNode) (*Live
|
||||
getEgressStore,
|
||||
NewEgressLauncher,
|
||||
NewEgressService,
|
||||
ingress.NewRedisRPC,
|
||||
getIngressClient,
|
||||
rpc.NewIngressClient,
|
||||
getIngressStore,
|
||||
getIngressConfig,
|
||||
getIngressRPCClient,
|
||||
NewIngressService,
|
||||
NewRoomAllocator,
|
||||
NewRoomService,
|
||||
@@ -161,14 +158,6 @@ func getEgressStore(s ObjectStore) EgressStore {
|
||||
}
|
||||
}
|
||||
|
||||
func getIngressClient(conf *config.Config, nodeID livekit.NodeID, bus psrpc.MessageBus) (rpc.IngressClient, error) {
|
||||
if conf.Ingress.UsePsRPC {
|
||||
return rpc.NewIngressClient(nodeID, bus)
|
||||
}
|
||||
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func getIngressStore(s ObjectStore) IngressStore {
|
||||
switch store := s.(type) {
|
||||
case *RedisStore:
|
||||
@@ -182,10 +171,6 @@ func getIngressConfig(conf *config.Config) *config.IngressConfig {
|
||||
return &conf.Ingress
|
||||
}
|
||||
|
||||
func getIngressRPCClient(rpc ingress.RPC) ingress.RPCClient {
|
||||
return rpc
|
||||
}
|
||||
|
||||
func createClientConfiguration() clientconfiguration.ClientConfigurationManager {
|
||||
return clientconfiguration.NewStaticClientConfigurationManager(clientconfiguration.StaticConfigurations)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user