mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-21 05:43:09 -06:00
Flip the check in InputRoomEvents
This commit is contained in:
parent
83ee76369d
commit
ac3f24315e
|
|
@ -73,9 +73,9 @@ func (r *RoomserverInternalAPI) InputRoomEvents(
|
|||
response *api.InputRoomEventsResponse,
|
||||
) (err error) {
|
||||
for i, e := range request.InputRoomEvents {
|
||||
roomID := e.Event.RoomID()
|
||||
if !r.DB.SupportsConcurrentRoomInputs() {
|
||||
roomID = "global"
|
||||
roomID := "global"
|
||||
if r.DB.SupportsConcurrentRoomInputs() {
|
||||
roomID = e.Event.RoomID()
|
||||
}
|
||||
mutex, _ := r.mutexes.LoadOrStore(roomID, &sync.Mutex{})
|
||||
mutex.(*sync.Mutex).Lock()
|
||||
|
|
|
|||
Loading…
Reference in a new issue