Fix count of EDUs in logging

This commit is contained in:
Neil Alexander 2020-03-27 11:56:46 +00:00
parent 886523e4f8
commit 2211db7609

View file

@ -48,7 +48,8 @@ func Send(
}
var txnEvents struct {
Events []json.RawMessage `json:"pdus"`
PDUs []json.RawMessage `json:"pdus"`
EDUs []json.RawMessage `json:"edus"`
}
if err := json.Unmarshal(request.Content(), &txnEvents); err != nil {
@ -58,7 +59,7 @@ func Send(
}
}
t.PDUs = txnEvents.Events
t.PDUs = txnEvents.PDUs
t.Origin = request.Origin()
t.TransactionID = txnID
t.Destination = cfg.Matrix.ServerName