summary refs log tree commit diff
path: root/synapse/handlers/sync.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-05-09 11:55:34 +0100
committerErik Johnston <erik@matrix.org>2018-05-09 11:55:34 +0100
commitc4af4c24ca988832018feaf0ac5a2f6dbb8bfe68 (patch)
tree9fec1d41be28a78afcffdd77b5f532e607543a81 /synapse/handlers/sync.py
parentRefactor pagination DB API to return concrete type (diff)
downloadsynapse-c4af4c24ca988832018feaf0ac5a2f6dbb8bfe68.tar.xz
Refactor get_recent_events_for_room return type
There is no reason to return a tuple of tokens when the last token is
always the token passed as an argument. Changing it makes it consistent
with other storage APIs
Diffstat (limited to 'synapse/handlers/sync.py')
-rw-r--r--synapse/handlers/sync.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py
index b52e4c2aff..c25a76d215 100644
--- a/synapse/handlers/sync.py
+++ b/synapse/handlers/sync.py
@@ -429,7 +429,7 @@ class SyncHandler(object):
         Returns:
             A Deferred map from ((type, state_key)->Event)
         """
-        last_events, token = yield self.store.get_recent_events_for_room(
+        last_events, _ = yield self.store.get_recent_events_for_room(
             room_id, end_token=stream_position.room_key, limit=1,
         )