mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-06 12:45:03 -04:00
Fix Formatting
This commit is contained in:
parent
b19cf6a105
commit
e020574d65
4 changed files with 9 additions and 14 deletions
|
@ -214,7 +214,7 @@ class Notifier(object):
|
|||
|
||||
deferred = defer.Deferred()
|
||||
|
||||
from_token=StreamToken("s0","0","0")
|
||||
from_token = StreamToken("s0", "0", "0")
|
||||
|
||||
listener = [_NotificationListener(
|
||||
user=user,
|
||||
|
@ -231,6 +231,7 @@ class Notifier(object):
|
|||
result = yield callback()
|
||||
if timeout:
|
||||
timed_out = [False]
|
||||
|
||||
def _timeout_listener():
|
||||
timed_out[0] = True
|
||||
listener[0].notify(self, [], from_token, from_token)
|
||||
|
@ -252,7 +253,6 @@ class Notifier(object):
|
|||
|
||||
defer.returnValue(result)
|
||||
|
||||
|
||||
def get_events_for(self, user, rooms, pagination_config, timeout):
|
||||
""" For the given user and rooms, return any new events for them. If
|
||||
there are no new events wait for up to `timeout` milliseconds for any
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue