summary refs log tree commit diff
path: root/synapse/config/workers.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-01-15 17:09:54 +0000
committerErik Johnston <erik@matrix.org>2018-01-15 17:09:54 +0000
commit2e3758f2052b4724bc3e604c7bd1e8b358123b8f (patch)
treebce6a410998e55519c1bd828e0dd5bb680cedd24 /synapse/config/workers.py
parentUpdates tests (diff)
parentMerge pull request #2778 from matrix-org/rav/counters_should_be_floats (diff)
downloadsynapse-github/erikj/separate_event_creation.tar.xz
Merge branch 'develop' of github.com:matrix-org/synapse into erikj/separate_event_creation github/erikj/separate_event_creation erikj/separate_event_creation
Diffstat (limited to 'synapse/config/workers.py')
-rw-r--r--synapse/config/workers.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/config/workers.py b/synapse/config/workers.py

index c5a5a8919c..4b6884918d 100644 --- a/synapse/config/workers.py +++ b/synapse/config/workers.py
@@ -23,6 +23,11 @@ class WorkerConfig(Config): def read_config(self, config): self.worker_app = config.get("worker_app") + + # Canonicalise worker_app so that master always has None + if self.worker_app == "synapse.app.homeserver": + self.worker_app = None + self.worker_listeners = config.get("worker_listeners") self.worker_daemonize = config.get("worker_daemonize") self.worker_pid_file = config.get("worker_pid_file")