Skip to content

Commit

Permalink
Disable push processing
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed Jan 31, 2023
1 parent b08bc04 commit 534c2e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion synapse/handlers/federation_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -2173,7 +2173,7 @@ async def _run_push_actions_and_persist_event(
# persist_events_and_notify directly.)
assert not event.internal_metadata.outlier

if not backfilled and not context.rejected:
if False and not backfilled and not context.rejected:
min_depth = await self._store.get_min_depth(event.room_id)
if min_depth is None or min_depth > event.depth:
# XXX richvdh 2021/10/07: I don't really understand what this
Expand Down
7 changes: 4 additions & 3 deletions synapse/handlers/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -1466,9 +1466,10 @@ async def _persist_events(
a room that has been un-partial stated.
"""

await self._bulk_push_rule_evaluator.action_for_events_by_user(
events_and_context
)
# T2B: Disable push processing.
#await self._bulk_push_rule_evaluator.action_for_events_by_user(
# events_and_context
#)

try:
# If we're a worker we need to hit out to the master.
Expand Down

0 comments on commit 534c2e6

Please sign in to comment.