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

Faster joins: Refactor handling of servers in room #14954

Merged
merged 4 commits into from
Feb 3, 2023

Commits on Jan 31, 2023

  1. Ensure list of servers in partial state room contains original server

    ...and hence is never empty for a partial state room. This couldn't
    happen previously because we check if the list is falsy, but let's make
    it more explicit and intentional.
    
    Signed-off-by: Sean Quah <seanq@matrix.org>
    Sean Quah committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    07853dd View commit details
    Browse the repository at this point in the history
  2. Refactor get_partial_state_servers_at_join

    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>
    Sean Quah committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    2ec2796 View commit details
    Browse the repository at this point in the history
  3. Add newsfile

    Sean Quah committed Jan 31, 2023
    Configuration menu
    Copy the full SHA
    f65d213 View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2023

  1. convert list of servers into a set

    Sean Quah committed Feb 2, 2023
    Configuration menu
    Copy the full SHA
    163c68c View commit details
    Browse the repository at this point in the history