summary refs log tree commit diff
path: root/synapse/replication/http/__init__.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-02-18 12:12:57 +0000
committerErik Johnston <erik@matrix.org>2019-02-18 12:12:57 +0000
commiteb2b8523ae1ddd38bf1dd19ee37e44e7f4a3ee68 (patch)
tree4e6b6698aaa6b7ec52ba0df8c325edab17ffab5d /synapse/replication/http/__init__.py
parentMerge pull request #4657 from matrix-org/travis/linda/spelling (diff)
downloadsynapse-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/replication/http/__init__.py')
-rw-r--r--synapse/replication/http/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/replication/http/__init__.py b/synapse/replication/http/__init__.py
index 19f214281e..81b85352b1 100644
--- a/synapse/replication/http/__init__.py
+++ b/synapse/replication/http/__init__.py
@@ -14,7 +14,7 @@
 # limitations under the License.
 
 from synapse.http.server import JsonResource
-from synapse.replication.http import federation, membership, send_event
+from synapse.replication.http import federation, login, membership, register, send_event
 
 REPLICATION_PREFIX = "/_synapse/replication"
 
@@ -28,3 +28,5 @@ class ReplicationRestResource(JsonResource):
         send_event.register_servlets(hs, self)
         membership.register_servlets(hs, self)
         federation.register_servlets(hs, self)
+        login.register_servlets(hs, self)
+        register.register_servlets(hs, self)