diff options
author | Erik Johnston <erik@matrix.org> | 2019-02-18 12:12:57 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2019-02-18 12:12:57 +0000 |
commit | eb2b8523ae1ddd38bf1dd19ee37e44e7f4a3ee68 (patch) | |
tree | 4e6b6698aaa6b7ec52ba0df8c325edab17ffab5d /synapse/app | |
parent | Merge pull request #4657 from matrix-org/travis/linda/spelling (diff) | |
download | synapse-eb2b8523ae1ddd38bf1dd19ee37e44e7f4a3ee68.tar.xz |
Split out registration to worker
This allows registration to be handled by a worker, though the actual write to the database still happens on master. Note: due to the in-memory session map all registration requests must be handled by the same worker.
Diffstat (limited to 'synapse/app')
-rw-r--r-- | synapse/app/client_reader.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/app/client_reader.py b/synapse/app/client_reader.py index a9d2147022..9250b6c239 100644 --- a/synapse/app/client_reader.py +++ b/synapse/app/client_reader.py @@ -47,6 +47,7 @@ from synapse.rest.client.v1.room import ( RoomMemberListRestServlet, RoomStateRestServlet, ) +from synapse.rest.client.v2_alpha.register import RegisterRestServlet from synapse.server import HomeServer from synapse.storage.engines import create_engine from synapse.util.httpresourcetree import create_resource_tree @@ -92,6 +93,7 @@ class ClientReaderServer(HomeServer): JoinedRoomMemberListRestServlet(self).register(resource) RoomStateRestServlet(self).register(resource) RoomEventContextServlet(self).register(resource) + RegisterRestServlet(self).register(resource) resources.update({ "/_matrix/client/r0": resource, |