summary refs log tree commit diff
path: root/synapse/replication/http/streams.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2020-03-24 11:47:57 +0000
committerErik Johnston <erik@matrix.org>2020-03-24 11:47:57 +0000
commit2380e401e43f626c2dc64e5d1ab2297088097746 (patch)
treefe70eedd98bdab79548d368ee361358308eaabe6 /synapse/replication/http/streams.py
parentHandle connection closing under us (diff)
downloadsynapse-2380e401e43f626c2dc64e5d1ab2297088097746.tar.xz
Remove import loop
Diffstat (limited to 'synapse/replication/http/streams.py')
-rw-r--r--synapse/replication/http/streams.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/replication/http/streams.py b/synapse/replication/http/streams.py

index 141df68787..ffd4c61993 100644 --- a/synapse/replication/http/streams.py +++ b/synapse/replication/http/streams.py
@@ -47,9 +47,9 @@ class ReplicationGetStreamUpdates(ReplicationEndpoint): def __init__(self, hs): super().__init__(hs) - from synapse.replication.tcp.streams import STREAMS_MAP - - self.streams = {stream.NAME: stream(hs) for stream in STREAMS_MAP.values()} + # We pull the streams from the replication steamer (if we try and make + # them ourselves we end up in an import loop). + self.streams = hs.get_replication_streamer().get_streams() @staticmethod def _serialize_payload(stream_name, from_token, upto_token, limit):