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

Commit 630184b

Browse files
committed
Factor out _run_push_actions_and_persist_event
1 parent 6e8fb42 commit 630184b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

synapse/handlers/federation.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2179,6 +2179,18 @@ async def _auth_and_persist_event(
21792179
backfilled=backfilled,
21802180
)
21812181

2182+
await self._run_push_actions_and_persist_event(event, context, backfilled)
2183+
2184+
async def _run_push_actions_and_persist_event(
2185+
self, event: EventBase, context: EventContext, backfilled: bool = False
2186+
):
2187+
"""Run the push actions for a received event, and persist it.
2188+
2189+
Args:
2190+
event: The event itself.
2191+
context: The event context.
2192+
backfilled: True if the event was backfilled.
2193+
"""
21822194
try:
21832195
if (
21842196
not event.internal_metadata.is_outlier()

0 commit comments

Comments
 (0)