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

Commit

Permalink
Don't check the local database when backfilling events
Browse files Browse the repository at this point in the history
  • Loading branch information
anoadragon453 committed Sep 18, 2020
1 parent e5d5250 commit 8552287
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion synapse/federation/federation_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ async def backfill(

# Check signatures and hash of pdus, removing any from the list that fail checks
pdus[:] = await self._check_sigs_and_hash_and_fetch(
dest, pdus, outlier=True, room_version=room_version
dest, pdus, outlier=True, room_version=room_version, check_db=False
)

return pdus
Expand Down Expand Up @@ -348,6 +348,7 @@ async def _check_sigs_and_hash_and_fetch(
room_version: RoomVersion,
outlier: bool = False,
include_none: bool = False,
check_db: bool = True,
) -> List[EventBase]:
"""Takes a list of PDUs and checks the signatures and hashes of each
one. If a PDU fails its signature check then we check if we have it in
Expand Down

0 comments on commit 8552287

Please sign in to comment.