diff options
author | Erik Johnston <erik@matrix.org> | 2016-03-14 15:30:19 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-03-14 15:30:19 +0000 |
commit | a547e2df8517d22010f7978da88dfe81bbd2b207 (patch) | |
tree | 94eba3e246ed372aa92b391d28d5d5b6009399bd /synapse/util | |
parent | Merge pull request #644 from matrix-org/markjh/parse_jsonIII (diff) | |
download | synapse-a547e2df8517d22010f7978da88dfe81bbd2b207.tar.xz |
Return list, not generator.
Diffstat (limited to 'synapse/util')
-rw-r--r-- | synapse/util/caches/stream_change_cache.py | 4 |
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 |