summary refs log tree commit diff
path: root/synapse/server.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-03-05 14:41:13 +0000
committerErik Johnston <erik@matrix.org>2019-03-05 14:41:13 +0000
commitdc510e0e43ea1c8401f2ed0bfcd1af34c88c9a8b (patch)
treea8a1f183cc788061f1078c209b5f85f741e646df /synapse/server.py
parentRemove #4733 debug (#4767) (diff)
parentAdd rate-limiting on registration (#4735) (diff)
downloadsynapse-dc510e0e43ea1c8401f2ed0bfcd1af34c88c9a8b.tar.xz
Merge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes
Diffstat (limited to 'synapse/server.py')
-rw-r--r--synapse/server.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/synapse/server.py b/synapse/server.py

index 4d364fccce..4323e7ff12 100644 --- a/synapse/server.py +++ b/synapse/server.py
@@ -51,7 +51,7 @@ from synapse.handlers.acme import AcmeHandler from synapse.handlers.appservice import ApplicationServicesHandler from synapse.handlers.auth import AuthHandler, MacaroonGenerator from synapse.handlers.deactivate_account import DeactivateAccountHandler -from synapse.handlers.device import DeviceHandler +from synapse.handlers.device import DeviceHandler, DeviceWorkerHandler from synapse.handlers.devicemessage import DeviceMessageHandler from synapse.handlers.e2e_keys import E2eKeysHandler from synapse.handlers.e2e_room_keys import E2eRoomKeysHandler @@ -307,7 +307,10 @@ class HomeServer(object): return MacaroonGenerator(self) def build_device_handler(self): - return DeviceHandler(self) + if self.config.worker_app: + return DeviceWorkerHandler(self) + else: + return DeviceHandler(self) def build_device_message_handler(self): return DeviceMessageHandler(self)