Small refactor (#148)
* small refactor * extra line * fix room allocator test * selector fakes not used * keep decisions out of router * put nodeId logic back * fix room allocator test
This commit is contained in:
@@ -42,7 +42,7 @@ func (r *LocalRouter) GetNodeForRoom(ctx context.Context, roomName string) (*liv
|
||||
return node, nil
|
||||
}
|
||||
|
||||
func (r *LocalRouter) SetNodeForRoom(ctx context.Context, roomName string, nodeId string) error {
|
||||
func (r *LocalRouter) SetNodeForRoom(ctx context.Context, roomName, nodeId string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -142,7 +142,7 @@ func (r *LocalRouter) Start() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (r *LocalRouter) PreStop() {
|
||||
func (r *LocalRouter) Drain() {
|
||||
r.currentNode.State = livekit.NodeState_SHUTTING_DOWN
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user