summary refs log tree commit diff
path: root/synapse/util/caches/stream_change_cache.py
diff options
context:
space:
mode:
authorAmber Brown <hawkowl@atleastfornow.net>2018-06-26 17:29:01 +0100
committerAmber Brown <hawkowl@atleastfornow.net>2018-06-26 17:29:01 +0100
commit1202508067d392cbc71e1c9e0b4d9eca3494143a (patch)
tree301bc01b521ad36bf83b2524d7047b4219c5dde7 /synapse/util/caches/stream_change_cache.py
parentfixes (diff)
downloadsynapse-1202508067d392cbc71e1c9e0b4d9eca3494143a.tar.xz
fixes
Diffstat (limited to 'synapse/util/caches/stream_change_cache.py')
-rw-r--r--synapse/util/caches/stream_change_cache.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/util/caches/stream_change_cache.py b/synapse/util/caches/stream_change_cache.py
index b19feb3b11..0fb8620001 100644
--- a/synapse/util/caches/stream_change_cache.py
+++ b/synapse/util/caches/stream_change_cache.py
@@ -114,8 +114,8 @@ class StreamChangeCache(object):
         assert type(stream_pos) is int
 
         if stream_pos >= self._earliest_known_stream_pos:
-            return {self._cache[k] for k in self._cache.islice(
-                start=self._cache.bisect_right(stream_pos))}
+            return [self._cache[k] for k in self._cache.islice(
+                start=self._cache.bisect_right(stream_pos))]
         else:
             return None