mirror of
https://github.com/1f349/dendrite.git
synced 2024-11-25 13:11:37 +00:00
Make sure PDUs and EDUs in transaction don't marshal to null (#876)
This commit is contained in:
parent
420ee15433
commit
6460b3725d
@ -102,7 +102,10 @@ func (oq *destinationQueue) next() *gomatrixserverlib.Transaction {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
var t gomatrixserverlib.Transaction
|
t := gomatrixserverlib.Transaction{
|
||||||
|
PDUs: []gomatrixserverlib.Event{},
|
||||||
|
EDUs: []gomatrixserverlib.EDU{},
|
||||||
|
}
|
||||||
now := gomatrixserverlib.AsTimestamp(time.Now())
|
now := gomatrixserverlib.AsTimestamp(time.Now())
|
||||||
t.TransactionID = gomatrixserverlib.TransactionID(fmt.Sprintf("%d-%d", now, oq.sentCounter))
|
t.TransactionID = gomatrixserverlib.TransactionID(fmt.Sprintf("%d-%d", now, oq.sentCounter))
|
||||||
t.Origin = oq.origin
|
t.Origin = oq.origin
|
||||||
|
Loading…
Reference in New Issue
Block a user