diff options
author | Brendan Abolivier <babolivier@matrix.org> | 2020-09-04 10:19:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-04 10:19:42 +0100 |
commit | 9f8abdcc3828e942f09cc62e29dff93dbaa01ec7 (patch) | |
tree | 5811a075386a883af3e9da43c6123beb812d70c4 /synapse/replication/tcp/streams | |
parent | Add type hints to more handlers (#8244) (diff) | |
download | synapse-9f8abdcc3828e942f09cc62e29dff93dbaa01ec7.tar.xz |
Revert "Add experimental support for sharding event persister. (#8170)" (#8242)
* Revert "Add experimental support for sharding event persister. (#8170)" This reverts commit 82c1ee1c22a87b9e6e3179947014b0f11c0a1ac3. * Changelog
Diffstat (limited to 'synapse/replication/tcp/streams')
-rw-r--r-- | synapse/replication/tcp/streams/events.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/replication/tcp/streams/events.py b/synapse/replication/tcp/streams/events.py index 3705618b4f..16c63ff4ec 100644 --- a/synapse/replication/tcp/streams/events.py +++ b/synapse/replication/tcp/streams/events.py @@ -19,7 +19,7 @@ from typing import List, Tuple, Type import attr -from ._base import Stream, StreamUpdateResult, Token +from ._base import Stream, StreamUpdateResult, Token, current_token_without_instance """Handling of the 'events' replication stream @@ -117,7 +117,7 @@ class EventsStream(Stream): self._store = hs.get_datastore() super().__init__( hs.get_instance_name(), - self._store._stream_id_gen.get_current_token_for_writer, + current_token_without_instance(self._store.get_current_events_token), self._update_function, ) |