From 2211db76097218f33fe7afe7e28efc7fb038560b Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Fri, 27 Mar 2020 11:56:46 +0000 Subject: [PATCH] Fix count of EDUs in logging --- federationapi/routing/send.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/federationapi/routing/send.go b/federationapi/routing/send.go index b34a75f6f..4c92c7e5e 100644 --- a/federationapi/routing/send.go +++ b/federationapi/routing/send.go @@ -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