1
0

Complain at startup if we can't find fed senders

This commit is contained in:
David Robertson
2023-02-24 17:12:02 +00:00
parent 5fc4155d2d
commit 3452c2a23d

View File

@@ -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(