diff options
author | David Robertson <davidr@element.io> | 2023-02-24 17:44:42 +0000 |
---|---|---|
committer | David Robertson <davidr@element.io> | 2023-02-24 17:44:42 +0000 |
commit | b4517d78f687aaf900c41862fb6b4c571aeb24dd (patch) | |
tree | fba9f00d8b36b16f8eed8fb443e1c667c555d481 | |
parent | Complain at startup if we can't find fed senders (diff) | |
download | synapse-github/dmr/key-requests-from-fed-senders.tar.xz |
Master is a fed sender if none are configured github/dmr/key-requests-from-fed-senders dmr/key-requests-from-fed-senders
-rw-r--r-- | synapse/config/workers.py | 5 |
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 ) |