Skip to content

Commit

Permalink
Fix error handling around when completing an AS transaction (matrix-o…
Browse files Browse the repository at this point in the history
  • Loading branch information
babolivier authored Oct 30, 2020
1 parent f27a789 commit 7a0fd6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/8693.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add more type hints to the application services code.
2 changes: 1 addition & 1 deletion synapse/storage/databases/main/appservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def _complete_appservice_txn(txn):
# 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 "
Expand Down

0 comments on commit 7a0fd6f

Please sign in to comment.