mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-16 19:33:09 -06:00
Fix count of EDUs in logging
This commit is contained in:
parent
886523e4f8
commit
2211db7609
|
|
@ -48,7 +48,8 @@ func Send(
|
||||||
}
|
}
|
||||||
|
|
||||||
var txnEvents struct {
|
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 {
|
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.Origin = request.Origin()
|
||||||
t.TransactionID = txnID
|
t.TransactionID = txnID
|
||||||
t.Destination = cfg.Matrix.ServerName
|
t.Destination = cfg.Matrix.ServerName
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue