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

Commit

Permalink
Merge pull request #5505 from matrix-org/erikj/messages_worker
Browse files Browse the repository at this point in the history
Support pagination API in client_reader worker
  • Loading branch information
erikjohnston authored Jun 21, 2019
2 parents 7456698 + 60b912c commit 5f8a612
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/5505.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add support for handling pagination APIs on client reader worker.
7 changes: 7 additions & 0 deletions docs/workers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,13 @@ be routed to the same instance::

^/_matrix/client/(r0|unstable)/register$

Pagination requests can also be handled, but all requests with the same path
room must be routed to the same instance. Additionally, care must be taken to
ensure that the purge history admin API is not used while pagination requests
for the room are in flight::

^/_matrix/client/(api/v1|r0|unstable)/rooms/.*/messages$


``synapse.app.user_dir``
~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down
2 changes: 2 additions & 0 deletions synapse/app/client_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
PublicRoomListRestServlet,
RoomEventContextServlet,
RoomMemberListRestServlet,
RoomMessageListRestServlet,
RoomStateRestServlet,
)
from synapse.rest.client.v1.voip import VoipRestServlet
Expand Down Expand Up @@ -109,6 +110,7 @@ def _listen_http(self, listener_config):
JoinedRoomMemberListRestServlet(self).register(resource)
RoomStateRestServlet(self).register(resource)
RoomEventContextServlet(self).register(resource)
RoomMessageListRestServlet(self).register(resource)
RegisterRestServlet(self).register(resource)
LoginRestServlet(self).register(resource)
ThreepidRestServlet(self).register(resource)
Expand Down

0 comments on commit 5f8a612

Please sign in to comment.