summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2023-02-24 17:44:42 +0000
committerDavid Robertson <davidr@element.io>2023-02-24 17:44:42 +0000
commitb4517d78f687aaf900c41862fb6b4c571aeb24dd (patch)
treefba9f00d8b36b16f8eed8fb443e1c667c555d481
parentComplain at startup if we can't find fed senders (diff)
downloadsynapse-dmr/key-requests-from-fed-senders.tar.xz
-rw-r--r--synapse/config/workers.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/config/workers.py b/synapse/config/workers.py
index 2580660b6c..0b03ad223e 100644
--- a/synapse/config/workers.py
+++ b/synapse/config/workers.py
@@ -174,7 +174,10 @@ class WorkerConfig(Config):
             "synapse.app.federation_sender",
             "federation_sender_instances",
         )
-        self.send_federation = self.instance_name in federation_sender_instances
+        self.send_federation = (self.instance_name in federation_sender_instances) or (
+            not federation_sender_instances and self.instance_name == "master"
+        )
+
         self.federation_shard_config = ShardedWorkerHandlingConfig(
             federation_sender_instances
         )