Skip to content

Commit

Permalink
Remove mutex
Browse files Browse the repository at this point in the history
  • Loading branch information
neilalexander committed Jun 30, 2021
1 parent 56cc0f0 commit 8558075
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions federationapi/routing/send.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8558075

Please sign in to comment.