This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Refactor MSC3030
/timestamp_to_event
to move away from our snowflake pull fromdestination
pattern #14096Refactor MSC3030
/timestamp_to_event
to move away from our snowflake pull fromdestination
pattern #14096Changes from 10 commits
8867831
f03a2b6
7c82755
3ce3984
720788d
da87def
7332df1
482629b
a57fceb
7f86fef
79f2fea
25ce11c
64a907a
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noticed that we iterate over
destinations
twice so if it was actually use anIterable
anywhere it would get exhausted the first time we iterate in the log before we actually went over each destination.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consistently handling these two errors across
get_pdu
, backfill, and the generic_try_destination_list
which is used for many places we use this pattern.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved this logic from
synapse/handlers/room.py
and refactored to use the generic_try_destination_list
which handles this pattern of looping overdestinations