Egress (#455)
* egress updates * pass egressInfo to delete * update typefakes * export StartEgress * update protocol * new rpc, rename stores * add json tag * update tests * update protocol
This commit is contained in:
+6
-4
@@ -28,7 +28,8 @@ func InitializeServer(conf *config.Config, currentNode routing.LocalNode) (*Live
|
||||
createRedisClient,
|
||||
createMessageBus,
|
||||
createStore,
|
||||
wire.Bind(new(RORoomStore), new(RoomStore)),
|
||||
wire.Bind(new(ServiceStore), new(ObjectStore)),
|
||||
wire.Bind(new(EgressStore), new(ObjectStore)),
|
||||
createKeyProvider,
|
||||
createWebhookNotifier,
|
||||
routing.CreateRouter,
|
||||
@@ -36,6 +37,7 @@ func InitializeServer(conf *config.Config, currentNode routing.LocalNode) (*Live
|
||||
wire.Bind(new(livekit.RoomService), new(*RoomService)),
|
||||
telemetry.NewAnalyticsService,
|
||||
telemetry.NewTelemetryService,
|
||||
NewEgressService,
|
||||
NewRecordingService,
|
||||
NewRoomAllocator,
|
||||
NewRoomService,
|
||||
@@ -125,9 +127,9 @@ func createMessageBus(rc *redis.Client) utils.MessageBus {
|
||||
return utils.NewRedisMessageBus(rc)
|
||||
}
|
||||
|
||||
func createStore(rc *redis.Client) RoomStore {
|
||||
func createStore(rc *redis.Client) ObjectStore {
|
||||
if rc != nil {
|
||||
return NewRedisRoomStore(rc)
|
||||
return NewRedisStore(rc)
|
||||
}
|
||||
return NewLocalRoomStore()
|
||||
return NewLocalStore()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user