summary refs log tree commit diff
path: root/synapse/util/caches/stream_change_cache.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-03-14 15:30:19 +0000
committerErik Johnston <erik@matrix.org>2016-03-14 15:30:19 +0000
commita547e2df8517d22010f7978da88dfe81bbd2b207 (patch)
tree94eba3e246ed372aa92b391d28d5d5b6009399bd /synapse/util/caches/stream_change_cache.py
parentMerge pull request #644 from matrix-org/markjh/parse_jsonIII (diff)
downloadsynapse-a547e2df8517d22010f7978da88dfe81bbd2b207.tar.xz
Return list, not generator.
Diffstat (limited to 'synapse/util/caches/stream_change_cache.py')
-rw-r--r--synapse/util/caches/stream_change_cache.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/synapse/util/caches/stream_change_cache.py b/synapse/util/caches/stream_change_cache.py
index a1aec7aa55..ea8a74ca69 100644
--- a/synapse/util/caches/stream_change_cache.py
+++ b/synapse/util/caches/stream_change_cache.py
@@ -99,9 +99,7 @@ class StreamChangeCache(object):
             keys = self._cache.keys()
             i = keys.bisect_right(stream_pos)
 
-            return (
-                self._cache[k] for k in keys[i:]
-            )
+            return [self._cache[k] for k in keys[i:]]
         else:
             return None