anonymousland-synapse/tests/replication/tcp/streams
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 bug where read-receipts lost their timestamps (#4927) 2019-03-25 16:38:05 +00:00
test_account_data.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
test_events.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
test_federation.py Clean up ShardedWorkerHandlingConfig (#9466) 2021-02-24 13:23:18 +00:00
test_receipts.py Clean up replication unit tests. (#7490) 2020-05-13 16:01:47 +01:00
test_typing.py Discard RDATA from already seen positions. (#7648) 2020-06-15 08:44:54 -04:00