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

Commit c2f296b

Browse files
author
Sean Quah
committed
Fix spurious warning when fetching state after a missing prev event
1 parent e5716b6 commit c2f296b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

changelog.d/13258.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix spurious warning when fetching state after a missing prev event.

synapse/handlers/federation_event.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,6 +1036,9 @@ async def _get_state_ids_after_missing_prev_event(
10361036
# XXX: this doesn't sound right? it means that we'll end up with incomplete
10371037
# state.
10381038
failed_to_fetch = desired_events - event_metadata.keys()
1039+
# `event_id`'s missing from `event_metadata` because it's not necessarily a
1040+
# state event. We've already checked that we've fetched it above.
1041+
failed_to_fetch.remove(event_id)
10391042
if failed_to_fetch:
10401043
logger.warning(
10411044
"Failed to fetch missing state events for %s %s",

0 commit comments

Comments
 (0)