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

Port some of FederationHandler to async/await #6517

Merged
merged 5 commits into from
Dec 11, 2019
Merged

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Dec 10, 2019

Sorry this is a bit of a big diff. it might be easier to review it by commit.

@richvdh richvdh force-pushed the rav/event_auth/13 branch 2 times, most recently from d7dc51a to 1ac70c1 Compare December 11, 2019 07:03
PaginationHandler.get_messages is only called by RoomMessageListRestServlet,
which is async.

Chase the code path down from there:
 - FederationHandler.maybe_backfill (and nested try_backfill)
 - FederationHandler.backfill
and associated functions:
 * on_receive_pdu
 * handle_queued_pdus
 * get_missing_events_for_pdu
... and _get_events_from_store_or_dest
also fix user_joined_room to consistently return deferreds
@richvdh richvdh merged commit 894d2ad into develop Dec 11, 2019
@richvdh richvdh deleted the rav/event_auth/13 branch December 11, 2019 16:38
@clokep clokep mentioned this pull request Jul 30, 2020
48 tasks
babolivier pushed a commit that referenced this pull request Sep 1, 2021
* commit '894d2adda':
  changelog
  convert to async: FederationHandler._process_received_pdu
  convert to async: FederationHandler._get_state_for_room
  convert to async: FederationHandler.on_receive_pdu
  Convert federation backfill to async
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants