diff options
author | Sean Quah <8349537+squahtx@users.noreply.github.com> | 2023-02-03 15:39:59 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-03 15:39:59 +0000 |
commit | 0a686d1d13c497af84f62ca192a401fdc18387ab (patch) | |
tree | 957f546554b6a193e3e01fbd530349abb259d636 /synapse/federation/sender | |
parent | Reload the pyo3-log config when the Python logging config changes. (#14976) (diff) | |
download | synapse-0a686d1d13c497af84f62ca192a401fdc18387ab.tar.xz |
Faster joins: Refactor handling of servers in room (#14954)
Ensure that the list of servers in a partial state room always contains the server we joined off. Also refactor `get_partial_state_servers_at_join` to return `None` when the given room is no longer partial stated, to explicitly indicate when the room has partial state. Otherwise it's not clear whether an empty list means that the room has full state, or the room is partial stated, but the server we joined off told us that there are no servers in the room. Signed-off-by: Sean Quah <seanq@matrix.org>
Diffstat (limited to 'synapse/federation/sender')
-rw-r--r-- | synapse/federation/sender/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/federation/sender/__init__.py b/synapse/federation/sender/__init__.py index 30ebd62883..43421a9c72 100644 --- a/synapse/federation/sender/__init__.py +++ b/synapse/federation/sender/__init__.py @@ -447,7 +447,7 @@ class FederationSender(AbstractFederationSender): ) ) - if len(partial_state_destinations) > 0: + if partial_state_destinations is not None: destinations = partial_state_destinations if destinations is None: |