From 3452c2a23d549251839d578e6d0eecb9d59fc4e8 Mon Sep 17 00:00:00 2001 From: David Robertson Date: Fri, 24 Feb 2023 17:12:02 +0000 Subject: Complain at startup if we can't find fed senders --- synapse/crypto/keyring.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/synapse/crypto/keyring.py b/synapse/crypto/keyring.py index a5c9d72085..7de3e8781f 100644 --- a/synapse/crypto/keyring.py +++ b/synapse/crypto/keyring.py @@ -41,6 +41,7 @@ from synapse.api.errors import ( RequestSendFailed, SynapseError, ) +from synapse.config import ConfigError from synapse.config.key import TrustedKeyServer from synapse.crypto.types import _FetchKeyRequest from synapse.events import EventBase @@ -927,6 +928,8 @@ class InternalWorkerRequestKeyFetcher(KeyFetcher): def __init__(self, hs: "HomeServer"): super().__init__(hs) self._federation_shard_config = hs.config.worker.federation_shard_config + if not self._federation_shard_config.instances: + raise ConfigError("No federation senders configured") self._client = ReplicationFetchKeysEndpoint.make_client(hs) async def _fetch_keys( -- cgit 1.5.1