diff options
author | Erik Johnston <erikj@jki.re> | 2016-08-22 12:13:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-22 12:13:07 +0100 |
commit | e65bc7d3153db2c2670a5bd255dd76a6906679d4 (patch) | |
tree | f96f7e285fbb4d678fab6e95e7ec936859027cd6 /synapse/handlers | |
parent | Merge pull request #1032 from matrix-org/matthew/workerdoc (diff) | |
parent | Add exception logging. Fix typo (diff) | |
download | synapse-e65bc7d3153db2c2670a5bd255dd76a6906679d4.tar.xz |
Merge pull request #1031 from matrix-org/erikj/measure_notifier
Add more Measure blocks
Diffstat (limited to 'synapse/handlers')
-rw-r--r-- | synapse/handlers/sync.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py index 0ee4ebe504..c8dfd02e7b 100644 --- a/synapse/handlers/sync.py +++ b/synapse/handlers/sync.py @@ -464,10 +464,10 @@ class SyncHandler(object): else: state = {} - defer.returnValue({ - (e.type, e.state_key): e - for e in sync_config.filter_collection.filter_room_state(state.values()) - }) + defer.returnValue({ + (e.type, e.state_key): e + for e in sync_config.filter_collection.filter_room_state(state.values()) + }) @defer.inlineCallbacks def unread_notifs_for_room_id(self, room_id, sync_config): @@ -485,9 +485,9 @@ class SyncHandler(object): ) defer.returnValue(notifs) - # There is no new information in this period, so your notification - # count is whatever it was last time. - defer.returnValue(None) + # There is no new information in this period, so your notification + # count is whatever it was last time. + defer.returnValue(None) @defer.inlineCallbacks def generate_sync_result(self, sync_config, since_token=None, full_state=False): |