summary refs log tree commit diff
path: root/synapse/storage/state.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2021-04-23 18:14:20 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2021-04-23 18:14:20 +0100
commitcb6c2caf05a80ea85a0336695ccdfbebc4ac36c9 (patch)
treec9a40122c1d1a81ca8048d9c06cc0d28d78d94d5 /synapse/storage/state.py
parentMerge commit '4ecba9bd5' into anoa/dinsic_release_1_31_0 (diff)
parentSpaces summary: call out to other servers (#9653) (diff)
downloadsynapse-cb6c2caf05a80ea85a0336695ccdfbebc4ac36c9.tar.xz
Merge commit 'c73cc2c2a' into anoa/dinsic_release_1_31_0
Diffstat (limited to 'synapse/storage/state.py')
-rw-r--r--synapse/storage/state.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/state.py b/synapse/storage/state.py

index aa25bd8350..2e277a21c4 100644 --- a/synapse/storage/state.py +++ b/synapse/storage/state.py
@@ -449,7 +449,7 @@ class StateGroupStorage: return self.stores.state._get_state_groups_from_groups(groups, state_filter) async def get_state_for_events( - self, event_ids: List[str], state_filter: StateFilter = StateFilter.all() + self, event_ids: Iterable[str], state_filter: StateFilter = StateFilter.all() ) -> Dict[str, StateMap[EventBase]]: """Given a list of event_ids and type tuples, return a list of state dicts for each event. @@ -485,7 +485,7 @@ class StateGroupStorage: return {event: event_to_state[event] for event in event_ids} async def get_state_ids_for_events( - self, event_ids: List[str], state_filter: StateFilter = StateFilter.all() + self, event_ids: Iterable[str], state_filter: StateFilter = StateFilter.all() ) -> Dict[str, StateMap[str]]: """ Get the state dicts corresponding to a list of events, containing the event_ids