mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-26 15:08:28 +00:00
Remove mutex
This commit is contained in:
parent
56cc0f04c1
commit
8558075e8c
1 changed files with 0 additions and 5 deletions
|
@ -654,14 +654,9 @@ func checkAllowedByState(e *gomatrixserverlib.Event, stateEvents []*gomatrixserv
|
|||
return gomatrixserverlib.Allowed(e, &authUsingState)
|
||||
}
|
||||
|
||||
var processEventWithMissingStateMutexes = internal.NewMutexByRoom()
|
||||
|
||||
func (t *txnReq) processEventWithMissingState(
|
||||
ctx context.Context, e *gomatrixserverlib.Event, roomVersion gomatrixserverlib.RoomVersion,
|
||||
) error {
|
||||
processEventWithMissingStateMutexes.Lock(e.RoomID())
|
||||
defer processEventWithMissingStateMutexes.Unlock(e.RoomID())
|
||||
|
||||
// We are missing the previous events for this events.
|
||||
// This means that there is a gap in our view of the history of the
|
||||
// room. There two ways that we can handle such a gap:
|
||||
|
|
Loading…
Reference in a new issue