synapse/tests/replication/tcp
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
..
streams Clean up ShardedWorkerHandlingConfig (#9466) 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_commands.py fix mypy for tests/replication (#7518) 2020-05-18 10:43:05 +01:00
test_remote_server_up.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00