Skip to content
Snippets Groups Projects
Unverified Commit 7a0fd6f9 authored by Brendan Abolivier's avatar Brendan Abolivier Committed by GitHub
Browse files

Fix error handling around when completing an AS transaction (#8693)

parent f27a7896
No related branches found
No related tags found
No related merge requests found
Add more type hints to the application services code.
......@@ -261,7 +261,7 @@ class ApplicationServiceTransactionWorkerStore(
# has probably missed some events), so whine loudly but still continue,
# since it shouldn't fail completion of the transaction.
last_txn_id = self._get_last_txn(txn, service.id)
if (txn_id + 1) != txn_id:
if (last_txn_id + 1) != txn_id:
logger.error(
"appservice: Completing a transaction which has an ID > 1 from "
"the last ID sent to this AS. We've either dropped events or "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment