diff options
author | Erik Johnston <erikj@jki.re> | 2018-08-22 11:35:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-22 11:35:55 +0100 |
commit | 764030cf632a21b857b52fb61fad04f3d23f22c0 (patch) | |
tree | 3d829ed43131171127616eaa332a3ef95632eabe /synapse/server.py | |
parent | Merge pull request #3673 from matrix-org/erikj/refactor_state_handler (diff) | |
parent | Rename WorkerProfileHandler to BaseProfileHandler (diff) | |
download | synapse-764030cf632a21b857b52fb61fad04f3d23f22c0.tar.xz |
Merge pull request #3659 from matrix-org/erikj/split_profiles
Allow profile updates to happen on workers
Diffstat (limited to 'synapse/server.py')
-rw-r--r-- | synapse/server.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/synapse/server.py b/synapse/server.py index 26228d8c72..a6fbc6ec0c 100644 --- a/synapse/server.py +++ b/synapse/server.py @@ -56,7 +56,7 @@ from synapse.handlers.initial_sync import InitialSyncHandler from synapse.handlers.message import EventCreationHandler, MessageHandler from synapse.handlers.pagination import PaginationHandler from synapse.handlers.presence import PresenceHandler -from synapse.handlers.profile import ProfileHandler +from synapse.handlers.profile import BaseProfileHandler, MasterProfileHandler from synapse.handlers.read_marker import ReadMarkerHandler from synapse.handlers.receipts import ReceiptsHandler from synapse.handlers.room import RoomContextHandler, RoomCreationHandler @@ -308,7 +308,10 @@ class HomeServer(object): return InitialSyncHandler(self) def build_profile_handler(self): - return ProfileHandler(self) + if self.config.worker_app: + return BaseProfileHandler(self) + else: + return MasterProfileHandler(self) def build_event_creation_handler(self): return EventCreationHandler(self) |