Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 48a182c

Browse files
committed
Merge commit '53834bb9c' into anoa/dinsic_release_1_21_x
* commit '53834bb9c': Run `remove_push_actions_from_staging` in foreground (#8081)
2 parents 1b99b00 + 53834bb commit 48a182c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

changelog.d/8081.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix `Re-starting finished log context PUT-nnnn` warning when event persistence failed.

synapse/handlers/message.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -894,9 +894,7 @@ async def handle_new_client_event(
894894
except Exception:
895895
# Ensure that we actually remove the entries in the push actions
896896
# staging area, if we calculated them.
897-
run_in_background(
898-
self.store.remove_push_actions_from_staging, event.event_id
899-
)
897+
await self.store.remove_push_actions_from_staging(event.event_id)
900898
raise
901899

902900
async def _validate_canonical_alias(

0 commit comments

Comments
 (0)