Initialise the map

This commit is contained in:
Neil Alexander 2021-06-21 17:05:01 +01:00
parent 6f8adc7b40
commit 9ad7d8cd58
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -102,14 +102,15 @@ func Send(
mu *internal.MutexByRoom, mu *internal.MutexByRoom,
) util.JSONResponse { ) util.JSONResponse {
t := txnReq{ t := txnReq{
rsAPI: rsAPI, rsAPI: rsAPI,
eduAPI: eduAPI, eduAPI: eduAPI,
keys: keys, keys: keys,
federation: federation, federation: federation,
haveEvents: make(map[string]*gomatrixserverlib.HeaderedEvent), haveEvents: make(map[string]*gomatrixserverlib.HeaderedEvent),
newEvents: make(map[string]bool), invalidEvents: make(map[string]struct{}),
keyAPI: keyAPI, newEvents: make(map[string]bool),
roomsMu: mu, keyAPI: keyAPI,
roomsMu: mu,
} }
var txnEvents struct { var txnEvents struct {