From 7fad77c10e3c1c78feddb37351812b209d9c0f25 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Mon, 28 Jun 2021 15:06:52 +0100 Subject: [PATCH] Fix processEventWithMissingStateMutexes --- federationapi/routing/send.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/federationapi/routing/send.go b/federationapi/routing/send.go index 97425f52..40d4b033 100644 --- a/federationapi/routing/send.go +++ b/federationapi/routing/send.go @@ -620,7 +620,7 @@ func checkAllowedByState(e *gomatrixserverlib.Event, stateEvents []*gomatrixserv return gomatrixserverlib.Allowed(e, &authUsingState) } -var processEventWithMissingStateMutexes = &internal.MutexByRoom{} +var processEventWithMissingStateMutexes = internal.NewMutexByRoom() func (t *txnReq) processEventWithMissingState( ctx context.Context, e *gomatrixserverlib.Event, roomVersion gomatrixserverlib.RoomVersion,