(ctx context.Context, roomName livekit.RoomName)
| 173 | } |
| 174 | |
| 175 | func (r *StandardRoomAllocator) ValidateCreateRoom(ctx context.Context, roomName livekit.RoomName) error { |
| 176 | // when auto create is disabled, we'll check to ensure it's already created |
| 177 | if !r.config.Room.AutoCreate && EnsureCreatePermission(ctx) != nil { |
| 178 | _, _, err := r.roomStore.LoadRoom(ctx, roomName, false) |
| 179 | if err != nil { |
| 180 | return err |
| 181 | } |
| 182 | } |
| 183 | return nil |
| 184 | } |
| 185 | |
| 186 | func applyDefaultRoomConfig(room *livekit.Room, internal *livekit.RoomInternal, conf *config.RoomConfig) { |
| 187 | room.EmptyTimeout = conf.EmptyTimeout |
nothing calls this directly
no test coverage detected