mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-26 12:09:22 -05:00
Comment why unsafe process is unsafe
This commit is contained in:
parent
d9f38561c8
commit
ce3fe52498
@ -120,6 +120,11 @@ class HttpPusher(object):
|
|||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def _unsafe_process(self):
|
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(
|
unprocessed = yield self.store.get_unread_push_actions_for_user_in_range(
|
||||||
self.user_id, self.last_stream_ordering, self.max_stream_ordering
|
self.user_id, self.last_stream_ordering, self.max_stream_ordering
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user