summary refs log tree commit diff
path: root/synapse/replication/tcp/resource.py
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/replication/tcp/resource.py')
-rw-r--r--synapse/replication/tcp/resource.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/synapse/replication/tcp/resource.py b/synapse/replication/tcp/resource.py

index b2a1785c08..c9d671210b 100644 --- a/synapse/replication/tcp/resource.py +++ b/synapse/replication/tcp/resource.py
@@ -25,7 +25,7 @@ from twisted.internet.protocol import Factory from synapse.metrics.background_process_metrics import run_as_background_process from synapse.replication.tcp.protocol import ServerReplicationStreamProtocol -from synapse.replication.tcp.streams import STREAMS_MAP, Stream +from synapse.replication.tcp.streams import STREAMS_MAP, Stream, TypingStream from synapse.replication.tcp.streams.federation import FederationStream from synapse.util.metrics import Measure @@ -79,8 +79,14 @@ class ReplicationStreamer(object): # hase been disabled on the master. continue + if stream == TypingStream: + continue + self.streams.append(stream(hs)) + if hs.config.server.handle_typing: + self.streams.append(TypingStream(hs)) + self.streams_by_name = {stream.NAME: stream for stream in self.streams} self.notifier.add_replication_callback(self.on_notifier_poke)