From 9ad7d8cd585112343808ba1cfef4b159db2c64f6 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Mon, 21 Jun 2021 17:05:01 +0100 Subject: [PATCH] Initialise the map --- federationapi/routing/send.go | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/federationapi/routing/send.go b/federationapi/routing/send.go index 4aa514c6..0149c27a 100644 --- a/federationapi/routing/send.go +++ b/federationapi/routing/send.go @@ -102,14 +102,15 @@ func Send( mu *internal.MutexByRoom, ) util.JSONResponse { t := txnReq{ - rsAPI: rsAPI, - eduAPI: eduAPI, - keys: keys, - federation: federation, - haveEvents: make(map[string]*gomatrixserverlib.HeaderedEvent), - newEvents: make(map[string]bool), - keyAPI: keyAPI, - roomsMu: mu, + rsAPI: rsAPI, + eduAPI: eduAPI, + keys: keys, + federation: federation, + haveEvents: make(map[string]*gomatrixserverlib.HeaderedEvent), + invalidEvents: make(map[string]struct{}), + newEvents: make(map[string]bool), + keyAPI: keyAPI, + roomsMu: mu, } var txnEvents struct {