diff options
author | Erik Johnston <erik@matrix.org> | 2020-05-01 15:21:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-01 15:21:35 +0100 |
commit | 3085cde577216519d789c8160262831cb2029972 (patch) | |
tree | bbd1fc5b416eb091dd7b936247d87079505239d1 /synapse/replication/slave/storage/events.py | |
parent | async/await is_server_admin (#7363) (diff) | |
download | synapse-3085cde577216519d789c8160262831cb2029972.tar.xz |
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()`.
Diffstat (limited to 'synapse/replication/slave/storage/events.py')
-rw-r--r-- | synapse/replication/slave/storage/events.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/synapse/replication/slave/storage/events.py b/synapse/replication/slave/storage/events.py index e73342c657..15011259df 100644 --- a/synapse/replication/slave/storage/events.py +++ b/synapse/replication/slave/storage/events.py @@ -93,12 +93,6 @@ class SlavedEventStore( def get_room_min_stream_ordering(self): return self._backfill_id_gen.get_current_token() - def stream_positions(self): - result = super(SlavedEventStore, self).stream_positions() - result["events"] = self._stream_id_gen.get_current_token() - result["backfill"] = -self._backfill_id_gen.get_current_token() - return result - def process_replication_rows(self, stream_name, token, rows): if stream_name == "events": self._stream_id_gen.advance(token) |