diff options
author | Erik Johnston <erik@matrix.org> | 2017-06-09 11:24:41 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-06-09 11:24:41 +0100 |
commit | 2cac7623a5adfa84df6bd57d74d954daba3cc149 (patch) | |
tree | bc0d65a1e84a66d82ebcde02e282bf797fe973d9 /synapse/replication/tcp | |
parent | Merge pull request #2263 from matrix-org/erikj/fix_state_woes (diff) | |
download | synapse-2cac7623a5adfa84df6bd57d74d954daba3cc149.tar.xz |
Add missing notifier
Diffstat (limited to 'synapse/replication/tcp')
-rw-r--r-- | synapse/replication/tcp/resource.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/replication/tcp/resource.py b/synapse/replication/tcp/resource.py index 8b2c4c3043..69c46911ec 100644 --- a/synapse/replication/tcp/resource.py +++ b/synapse/replication/tcp/resource.py @@ -67,6 +67,7 @@ class ReplicationStreamer(object): self.store = hs.get_datastore() self.presence_handler = hs.get_presence_handler() self.clock = hs.get_clock() + self.notifier = hs.get_notifier() # Current connections. self.connections = [] @@ -99,7 +100,7 @@ class ReplicationStreamer(object): if not hs.config.send_federation: self.federation_sender = hs.get_federation_sender() - hs.get_notifier().add_replication_callback(self.on_notifier_poke) + self.notifier.add_replication_callback(self.on_notifier_poke) # Keeps track of whether we are currently checking for updates self.is_looping = False |