diff options
author | David Baker <dave@matrix.org> | 2016-04-08 14:02:38 +0100 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2016-04-08 14:02:38 +0100 |
commit | ce3fe52498547144191fadf8ff0a8cb6d244334e (patch) | |
tree | 7c1025172e344fbd9ef6a287173d21dd933a8cf1 /synapse | |
parent | Literally a dictionary (diff) | |
download | synapse-ce3fe52498547144191fadf8ff0a8cb6d244334e.tar.xz |
Comment why unsafe process is unsafe
Diffstat (limited to '')
-rw-r--r-- | synapse/push/httppusher.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/push/httppusher.py b/synapse/push/httppusher.py index 9f51106d0f..685c5e48df 100644 --- a/synapse/push/httppusher.py +++ b/synapse/push/httppusher.py @@ -120,6 +120,11 @@ class HttpPusher(object): @defer.inlineCallbacks def _unsafe_process(self): + """ + Looks for unset notifications and dispatch them, in order + Never call this directly: use _process which will only allow this to + run once per pusher. + """ unprocessed = yield self.store.get_unread_push_actions_for_user_in_range( self.user_id, self.last_stream_ordering, self.max_stream_ordering ) |