MatrixSynapse/synapse/config
Erik Johnston 2927921942
Clean up `ShardedWorkerHandlingConfig` (#9466)
* Split ShardedWorkerHandlingConfig

This is so that we have a type level understanding of when it is safe to
call `get_instance(..)` (as opposed to `should_handle(..)`).

* Remove special cases in ShardedWorkerHandlingConfig.

`ShardedWorkerHandlingConfig` tried to handle the various different ways
it was possible to configure federation senders and pushers. This led to
special cases that weren't hit during testing.

To fix this the handling of the different cases is moved from there and
`generic_worker` into the worker config class. This allows us to have
the logic in one place and allows the rest of the code to ignore the
different cases.
2021-02-24 13:23:18 +00:00
..
__init__.py
__main__.py
_base.py Clean up `ShardedWorkerHandlingConfig` (#9466) 2021-02-24 13:23:18 +00:00
_base.pyi Clean up `ShardedWorkerHandlingConfig` (#9466) 2021-02-24 13:23:18 +00:00
_util.py
api.py
appservice.py
auth.py Parse ui_auth.session_timeout as a duration (instead of treating it as ms) (#9426) 2021-02-18 09:18:14 -05:00
cache.py
captcha.py
cas.py
consent_config.py
database.py
emailconfig.py
experimental.py
federation.py Add configs to make profile data more private (#9203) 2021-02-19 09:50:41 +00:00
groups.py
homeserver.py
jwt_config.py
key.py
logger.py
metrics.py
oidc_config.py
password_auth_providers.py
push.py Clean up `ShardedWorkerHandlingConfig` (#9466) 2021-02-24 13:23:18 +00:00
ratelimiting.py Ratelimit cross-user key sharing requests. (#8957) 2021-02-19 13:20:34 -05:00
redis.py
registration.py
repository.py Remove vestiges of uploads_path config (#9462) 2021-02-22 19:54:49 +00:00
room.py
room_directory.py
saml2_config.py
server.py Clean up `ShardedWorkerHandlingConfig` (#9466) 2021-02-24 13:23:18 +00:00
server_notices_config.py
spam_checker.py
sso.py
stats.py
third_party_event_rules.py
tls.py
tracer.py
user_directory.py Clean up the user directory sample config section (#9385) 2021-02-22 11:44:31 +00:00
voip.py
workers.py Clean up `ShardedWorkerHandlingConfig` (#9466) 2021-02-24 13:23:18 +00:00