mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-12 17:33:09 -06:00
Return the last txnID, which our events are using
This commit is contained in:
parent
219261e1fd
commit
a980881687
|
|
@ -163,7 +163,7 @@ func retrieveEvents(eventRows *sql.Rows) (events []gomatrixserverlib.Application
|
||||||
// If txnID has changed on this event from the previous event, then we've
|
// If txnID has changed on this event from the previous event, then we've
|
||||||
// reached the end of a transaction's events. Return only those events.
|
// reached the end of a transaction's events. Return only those events.
|
||||||
if lastTxnID > -2 && lastTxnID != txnID {
|
if lastTxnID > -2 && lastTxnID != txnID {
|
||||||
return
|
return events, maxID, lastTxnID, nil
|
||||||
}
|
}
|
||||||
lastTxnID = txnID
|
lastTxnID = txnID
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue