Skip to content
Snippets Groups Projects
Unverified Commit 53834bb9 authored by Richard van der Hoff's avatar Richard van der Hoff Committed by GitHub
Browse files

Run `remove_push_actions_from_staging` in foreground (#8081)

If we got an error persisting an event, we would try to remove the push actions
asynchronously, which would lead to a 'Re-starting finished log context'
warning.

I don't think there's any need for this to be asynchronous.
parent ff0e8946
No related branches found
No related tags found
No related merge requests found
Fix `Re-starting finished log context PUT-nnnn` warning when event persistence failed.
......@@ -891,9 +891,7 @@ class EventCreationHandler(object):
except Exception:
# Ensure that we actually remove the entries in the push actions
# staging area, if we calculated them.
run_in_background(
self.store.remove_push_actions_from_staging, event.event_id
)
await self.store.remove_push_actions_from_staging(event.event_id)
raise
async def _validate_canonical_alias(
......
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