mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Fix error handling around when completing an AS transaction (#8693)
This commit is contained in:
parent
f27a789697
commit
7a0fd6f98d
1
changelog.d/8693.misc
Normal file
1
changelog.d/8693.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
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,
|
# has probably missed some events), so whine loudly but still continue,
|
||||||
# since it shouldn't fail completion of the transaction.
|
# since it shouldn't fail completion of the transaction.
|
||||||
last_txn_id = self._get_last_txn(txn, service.id)
|
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(
|
logger.error(
|
||||||
"appservice: Completing a transaction which has an ID > 1 from "
|
"appservice: Completing a transaction which has an ID > 1 from "
|
||||||
"the last ID sent to this AS. We've either dropped events or "
|
"the last ID sent to this AS. We've either dropped events or "
|
||||||
|
Loading…
Reference in New Issue
Block a user