diff options
author | Sean Quah <8349537+squahtx@users.noreply.github.com> | 2022-08-01 13:53:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-01 13:53:56 +0100 |
commit | 224d792dd7827fb53b9ed3b73a99f4acefb456ba (patch) | |
tree | 1fa31a187862b516245c46e0d55cb77e2e110b26 /synapse/storage/controllers | |
parent | Enable Complement CI tests in the 'latest deps' test run. (#13213) (diff) | |
download | synapse-224d792dd7827fb53b9ed3b73a99f4acefb456ba.tar.xz |
Refactor `_resolve_state_at_missing_prevs` to return an `EventContext` (#13404)
Previously, `_resolve_state_at_missing_prevs` returned the resolved state before an event and a partial state flag. These were unwieldy to carry around would only ever be used to build an event context. Build the event context directly instead. Signed-off-by: Sean Quah <seanq@matrix.org>
Diffstat (limited to 'synapse/storage/controllers')
-rw-r--r-- | synapse/storage/controllers/state.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/storage/controllers/state.py b/synapse/storage/controllers/state.py index 20805c94fa..1e35046e07 100644 --- a/synapse/storage/controllers/state.py +++ b/synapse/storage/controllers/state.py @@ -338,6 +338,10 @@ class StateStorageController: event_ids: events to get state groups for await_full_state: if true, will block if we do not yet have complete state at these events. + + Raises: + RuntimeError if we don't have a state group for one or more of the events + (ie. they are outliers or unknown) """ if await_full_state: await self._partial_state_events_tracker.await_full_state(event_ids) |