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,
) 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 {