Use `stream.current_token()` and remove `stream_positions()` (#7172)
We move the processing of typing and federation replication traffic into their handlers so that `Stream.current_token()` points to a valid token. This allows us to remove `get_streams_to_replicate()` and `stream_positions()`.
Showing
- changelog.d/7172.misc 1 addition, 0 deletionschangelog.d/7172.misc
- synapse/app/generic_worker.py 0 additions, 16 deletionssynapse/app/generic_worker.py
- synapse/replication/slave/storage/_base.py 1 addition, 14 deletionssynapse/replication/slave/storage/_base.py
- synapse/replication/slave/storage/account_data.py 0 additions, 8 deletionssynapse/replication/slave/storage/account_data.py
- synapse/replication/slave/storage/deviceinbox.py 0 additions, 5 deletionssynapse/replication/slave/storage/deviceinbox.py
- synapse/replication/slave/storage/devices.py 0 additions, 10 deletionssynapse/replication/slave/storage/devices.py
- synapse/replication/slave/storage/events.py 0 additions, 6 deletionssynapse/replication/slave/storage/events.py
- synapse/replication/slave/storage/groups.py 0 additions, 5 deletionssynapse/replication/slave/storage/groups.py
- synapse/replication/slave/storage/presence.py 0 additions, 9 deletionssynapse/replication/slave/storage/presence.py
- synapse/replication/slave/storage/push_rule.py 0 additions, 5 deletionssynapse/replication/slave/storage/push_rule.py
- synapse/replication/slave/storage/pushers.py 0 additions, 5 deletionssynapse/replication/slave/storage/pushers.py
- synapse/replication/slave/storage/receipts.py 0 additions, 5 deletionssynapse/replication/slave/storage/receipts.py
- synapse/replication/slave/storage/room.py 0 additions, 5 deletionssynapse/replication/slave/storage/room.py
- synapse/replication/tcp/client.py 1 addition, 18 deletionssynapse/replication/tcp/client.py
- synapse/replication/tcp/handler.py 1 addition, 9 deletionssynapse/replication/tcp/handler.py
- tests/replication/tcp/streams/_base.py 10 additions, 20 deletionstests/replication/tcp/streams/_base.py
- tests/replication/tcp/streams/test_events.py 16 additions, 8 deletionstests/replication/tcp/streams/test_events.py
- tests/replication/tcp/streams/test_receipts.py 0 additions, 3 deletionstests/replication/tcp/streams/test_receipts.py
- tests/replication/tcp/streams/test_typing.py 0 additions, 3 deletionstests/replication/tcp/streams/test_typing.py
Loading
Please register or sign in to comment