synapse-product/synapse/push
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 Fix-up assertions about last stream token in push (#9020) 2021-01-05 10:53:15 -05:00
action_generator.py Add type hints to the push module. (#8901) 2020-12-11 11:43:53 -05:00
baserules.py Add type hints to the push module. (#8901) 2020-12-11 11:43:53 -05:00
bulk_push_rule_evaluator.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
clientformat.py Add type hints to the push module. (#8901) 2020-12-11 11:43:53 -05:00
emailpusher.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
httppusher.py Fix deleting pushers when using sharded pushers. (#9465) 2021-02-22 21:14:42 +00:00
mailer.py Handle empty rooms when generating email notifications. (#9257) 2021-02-04 10:18:25 -05:00
presentable_names.py Handle missing content keys when calculating presentable names. (#9165) 2021-01-25 07:27:16 -05:00
push_rule_evaluator.py Add type hints to the push module. (#8901) 2020-12-11 11:43:53 -05:00
push_tools.py Add type hints for HTTP and email pushers. (#8880) 2020-12-07 09:59:38 -05:00
pusher.py Convert internal pusher dicts to attrs classes. (#8940) 2020-12-16 11:25:30 -05:00
pusherpool.py Clean up ShardedWorkerHandlingConfig (#9466) 2021-02-24 13:23:18 +00:00
rulekinds.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00