consolidate room internal (#1030)
* consolidate room internal * create room internal map * pipelined room read * check error * fix pipelined reads * clean up after test
This commit is contained in:
@@ -171,7 +171,7 @@ func (s *RTCService) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
// when auto create is disabled, we'll check to ensure it's already created
|
||||
if !s.config.Room.AutoCreate {
|
||||
_, err := s.store.LoadRoom(context.Background(), roomName)
|
||||
_, _, err := s.store.LoadRoom(context.Background(), roomName, false)
|
||||
if err == ErrRoomNotFound {
|
||||
handleError(w, 404, err, loggerFields...)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user