diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2021-07-05 09:14:24 +0100 |
---|---|---|
committer | Neil Alexander <neilalexander@users.noreply.github.com> | 2021-07-05 09:14:24 +0100 |
commit | 7f02eab47d9f62132c4fee50f190088b70763e83 (patch) | |
tree | 0cfe4e541b12cb688a3343f231979077b1be12e0 /federationapi/routing/send.go | |
parent | 355ce7ed306bc4175755b07bf6fd590facffe2ee (diff) |
Remove processEventWithMissingStateMutex
Diffstat (limited to 'federationapi/routing/send.go')
-rw-r--r-- | federationapi/routing/send.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/federationapi/routing/send.go b/federationapi/routing/send.go index ae9a63fc..978eafd4 100644 --- a/federationapi/routing/send.go +++ b/federationapi/routing/send.go @@ -703,14 +703,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: |