Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Complain at startup if we can't find fed senders
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson committed Feb 24, 2023
1 parent 164e0fb commit e3ccb15
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions synapse/crypto/keyring.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
RequestSendFailed,
SynapseError,
)
from synapse.config import ConfigError
from synapse.config.key import TrustedKeyServer
from synapse.crypto.types import _FetchKeyRequest
from synapse.events import EventBase
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit e3ccb15

Please sign in to comment.