forked from MirrorHub/synapse
Fix spurious warning when fetching state after a missing prev event (#13258)
This commit is contained in:
parent
a6895dd576
commit
172ce29b14
2 changed files with 4 additions and 0 deletions
1
changelog.d/13258.misc
Normal file
1
changelog.d/13258.misc
Normal file
|
@ -0,0 +1 @@
|
|||
Fix spurious warning when fetching state after a missing prev event.
|
|
@ -1037,6 +1037,9 @@ class FederationEventHandler:
|
|||
# XXX: this doesn't sound right? it means that we'll end up with incomplete
|
||||
# state.
|
||||
failed_to_fetch = desired_events - event_metadata.keys()
|
||||
# `event_id` could be missing from `event_metadata` because it's not necessarily
|
||||
# a state event. We've already checked that we've fetched it above.
|
||||
failed_to_fetch.discard(event_id)
|
||||
if failed_to_fetch:
|
||||
logger.warning(
|
||||
"Failed to fetch missing state events for %s %s",
|
||||
|
|
Loading…
Reference in a new issue