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

Commit

Permalink
Enable cancellation of GET /rooms/<room_id>/state/<event_type>/* re…
Browse files Browse the repository at this point in the history
…quests

Signed-off-by: Sean Quah <[email protected]>
  • Loading branch information
Sean Quah committed May 11, 2022
1 parent 5b301d8 commit 7acab57
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions synapse/rest/client/room.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ def register(self, http_server: HttpServer) -> None:
self.__class__.__name__,
)

@cancellable
def on_GET_no_state_key(
self, request: SynapseRequest, room_id: str, event_type: str
) -> Awaitable[Tuple[int, JsonDict]]:
Expand All @@ -153,6 +154,7 @@ def on_PUT_no_state_key(
) -> Awaitable[Tuple[int, JsonDict]]:
return self.on_PUT(request, room_id, event_type, "")

@cancellable
async def on_GET(
self, request: SynapseRequest, room_id: str, event_type: str, state_key: str
) -> Tuple[int, JsonDict]:
Expand Down

0 comments on commit 7acab57

Please sign in to comment.