summary refs log tree commit diff
path: root/synapse/notifier.py
diff options
context:
space:
mode:
authorMark Haines <mjark@negativecurvature.net>2016-03-16 11:26:22 +0000
committerMark Haines <mjark@negativecurvature.net>2016-03-16 11:26:22 +0000
commitadd89a03a68c9b4471546945389235184e640726 (patch)
treebab9829607686f8b03dce2f542716ac8b418f31e /synapse/notifier.py
parentMerge pull request #648 from matrix-org/rav/password_reset (diff)
parentAdd a comment to offer a hint to an explanation for why we have a unique cons... (diff)
downloadsynapse-add89a03a68c9b4471546945389235184e640726.tar.xz
Merge pull request #647 from matrix-org/markjh/pushers_stream
Add replication stream for pushers
Diffstat (limited to 'synapse/notifier.py')
-rw-r--r--synapse/notifier.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/synapse/notifier.py b/synapse/notifier.py

index 9b69b0333a..f00cd8c588 100644 --- a/synapse/notifier.py +++ b/synapse/notifier.py
@@ -282,6 +282,12 @@ class Notifier(object): self.notify_replication() + def on_new_replication_data(self): + """Used to inform replication listeners that something has happend + without waking up any of the normal user event streams""" + with PreserveLoggingContext(): + self.notify_replication() + @defer.inlineCallbacks def wait_for_events(self, user_id, timeout, callback, room_ids=None, from_token=StreamToken.START):