Fix processEventWithMissingStateMutexes

This commit is contained in:
Neil Alexander 2021-06-28 15:06:52 +01:00
parent 138cddcac7
commit 7fad77c10e
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -620,7 +620,7 @@ func checkAllowedByState(e *gomatrixserverlib.Event, stateEvents []*gomatrixserv
return gomatrixserverlib.Allowed(e, &authUsingState) return gomatrixserverlib.Allowed(e, &authUsingState)
} }
var processEventWithMissingStateMutexes = &internal.MutexByRoom{} var processEventWithMissingStateMutexes = internal.NewMutexByRoom()
func (t *txnReq) processEventWithMissingState( func (t *txnReq) processEventWithMissingState(
ctx context.Context, e *gomatrixserverlib.Event, roomVersion gomatrixserverlib.RoomVersion, ctx context.Context, e *gomatrixserverlib.Event, roomVersion gomatrixserverlib.RoomVersion,