summary refs log tree commit diff
path: root/synapse/config
diff options
context:
space:
mode:
authorOlivier Wilkinson (reivilibre) <oliverw@matrix.org>2023-05-26 17:16:15 +0100
committerOlivier Wilkinson (reivilibre) <oliverw@matrix.org>2023-05-26 17:16:15 +0100
commita1154dfc20102e7a0d937cd6afff1fceba0456cf (patch)
treedbcba4fa9388945bc3bd1931df51862fd9d534e3 /synapse/config
parentAdd MSC3820 (room version 11) option 2 unstable room version. (#15666) (diff)
parentFix a typographical error in changelog (diff)
downloadsynapse-a1154dfc20102e7a0d937cd6afff1fceba0456cf.tar.xz
Merge branch 'master' into develop
Diffstat (limited to 'synapse/config')
-rw-r--r--synapse/config/workers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/config/workers.py b/synapse/config/workers.py
index d2311cc857..38e13dd7b5 100644
--- a/synapse/config/workers.py
+++ b/synapse/config/workers.py
@@ -222,7 +222,7 @@ class WorkerConfig(Config):
         # itself doesn't need this data as it would never have to talk to itself.
         instance_map: Dict[str, Any] = config.get("instance_map", {})
 
-        if instance_map and self.instance_name is not MAIN_PROCESS_INSTANCE_NAME:
+        if self.instance_name is not MAIN_PROCESS_INSTANCE_NAME:
             # The host used to connect to the main synapse
             main_host = config.get("worker_replication_host", None)