Ensure RoomService operation is complete prior to returning (#362)

* Ensure service doesn't return before operation is complete

* added integration tests for RoomService
This commit is contained in:
David Zhao
2022-01-21 11:00:33 -08:00
committed by GitHub
parent 126bb8867b
commit f9a1dd97c2
7 changed files with 261 additions and 21 deletions
+3
View File
@@ -65,6 +65,9 @@ func (r *StandardRoomAllocator) CreateRoom(ctx context.Context, req *livekit.Cre
if req.MaxParticipants > 0 {
rm.MaxParticipants = req.MaxParticipants
}
if req.Metadata != "" {
rm.Metadata = req.Metadata
}
if err := r.roomStore.StoreRoom(ctx, rm); err != nil {
return nil, err
}