diff options
author | reivilibre <oliverw@matrix.org> | 2022-09-07 11:03:32 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-07 12:03:32 +0100 |
commit | d3d9ca156e323fe194b1bcb1af1628f65a2f3c1c (patch) | |
tree | 74e19b799192c8be69179e27ceadda7a8beac18c /synapse/storage/controllers/state.py | |
parent | Rename the `EventFormatVersions` enum values so that they line up with room v... (diff) | |
download | synapse-d3d9ca156e323fe194b1bcb1af1628f65a2f3c1c.tar.xz |
Cancel the processing of key query requests when they time out. (#13680)
Diffstat (limited to 'synapse/storage/controllers/state.py')
-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 ba5380ce3e..bbe568bf05 100644 --- a/synapse/storage/controllers/state.py +++ b/synapse/storage/controllers/state.py @@ -36,6 +36,7 @@ from synapse.storage.util.partial_state_events_tracker import ( PartialStateEventsTracker, ) from synapse.types import MutableStateMap, StateMap +from synapse.util.cancellation import cancellable if TYPE_CHECKING: from synapse.server import HomeServer @@ -229,6 +230,7 @@ class StateStorageController: @trace @tag_args + @cancellable async def get_state_ids_for_events( self, event_ids: Collection[str], @@ -350,6 +352,7 @@ class StateStorageController: @trace @tag_args + @cancellable async def get_state_group_for_events( self, event_ids: Collection[str], @@ -398,6 +401,7 @@ class StateStorageController: event_id, room_id, prev_group, delta_ids, current_state_ids ) + @cancellable async def get_current_state_ids( self, room_id: str, |