mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-10 02:30:00 -04:00
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.
This commit is contained in:
parent
4151111d95
commit
eb2b8523ae
7 changed files with 401 additions and 147 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue