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

Optimise backfill calculation #12522

Merged
merged 16 commits into from
Apr 26, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions synapse/handlers/federation.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@ async def _maybe_backfill_inner(

forward_event_ids = await self.store.get_successor_events([bp.event_id])

extremities_events = await self.store.get_events(
forward_event_ids,
extremities_events = await self.store.get_events_as_list(
successor_event_ids,
DMRobertson marked this conversation as resolved.
Show resolved Hide resolved
redact_behaviour=EventRedactBehaviour.AS_IS,
get_prev_content=False,
)
Expand All @@ -322,7 +322,7 @@ async def _maybe_backfill_inner(
filtered_extremities = await filter_events_for_server(
self.storage,
self.server_name,
list(extremities_events.values()),
extremities_events,
redact=False,
check_history_visibility_only=True,
)
Expand Down