From 8558075e8c9bab3c1d8b2252b4ab40c7eaf774e8 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Wed, 30 Jun 2021 17:07:15 +0100 Subject: [PATCH] Remove mutex --- federationapi/routing/send.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/federationapi/routing/send.go b/federationapi/routing/send.go index aba1bda8..6971d5ba 100644 --- a/federationapi/routing/send.go +++ b/federationapi/routing/send.go @@ -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: