mark explicit create paths (#2935)

This commit is contained in:
Paul Wells
2024-08-13 22:00:39 -07:00
committed by GitHub
parent 8b47218270
commit dabbb298c5
7 changed files with 81 additions and 79 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ func (r *StandardRoomAllocator) CreateRoomEnabled() bool {
// CreateRoom creates a new room from a request and allocates it to a node to handle
// it'll also monitor its state, and cleans it up when appropriate
func (r *StandardRoomAllocator) CreateRoom(ctx context.Context, req *livekit.CreateRoomRequest) (*livekit.Room, *livekit.RoomInternal, bool, error) {
func (r *StandardRoomAllocator) CreateRoom(ctx context.Context, req *livekit.CreateRoomRequest, isExplicit bool) (*livekit.Room, *livekit.RoomInternal, bool, error) {
token, err := r.roomStore.LockRoom(ctx, livekit.RoomName(req.Name), 5*time.Second)
if err != nil {
return nil, nil, false, err