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 Fix validate_config on nested objects (#9054) 2021-01-08 14:23:04 +00:00
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 Clean-up the template loading code. (#9200) 2021-01-27 10:59:50 -05:00
cas.py Synapse 1.27.0rc2 (2021-02-11) 2021-02-11 11:56:03 -05:00
consent_config.py Clean-up the template loading code. (#9200) 2021-01-27 10:59:50 -05:00
database.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
emailconfig.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
experimental.py Implement MSC2858 support (#9183) 2021-01-27 12:41:24 +00:00
federation.py Add configs to make profile data more private (#9203) 2021-02-19 09:50:41 +00:00
groups.py Update the value of group_creation_prefix in sample config. (#8992) 2020-12-29 09:30:48 -05:00
homeserver.py Implement MSC2858 support (#9183) 2021-01-27 12:41:24 +00:00
jwt_config.py Fix typos and spelling errors. (#8639) 2020-10-23 12:38:40 -04:00
key.py
logger.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
metrics.py
oidc_config.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
password_auth_providers.py Better formatting for config errors from modules (#8874) 2020-12-08 14:04:35 +00:00
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 Synapse 1.27.0rc2 (2021-02-11) 2021-02-11 11:56:03 -05:00
repository.py Remove vestiges of uploads_path config (#9462) 2021-02-22 19:54:49 +00:00
room.py
room_directory.py Fix some typos. 2021-02-12 11:14:12 -05:00
saml2_config.py Synapse 1.27.0rc2 (2021-02-11) 2021-02-11 11:56:03 -05:00
server.py Clean up `ShardedWorkerHandlingConfig` (#9466) 2021-02-24 13:23:18 +00:00
server_notices_config.py
spam_checker.py Better formatting for config errors from modules (#8874) 2020-12-08 14:04:35 +00:00
sso.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
stats.py
third_party_event_rules.py Better formatting for config errors from modules (#8874) 2020-12-08 14:04:35 +00:00
tls.py
tracer.py Fix typos and spelling errors. (#8639) 2020-10-23 12:38:40 -04:00
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