summary refs log tree commit diff
path: root/synapse/storage/stream.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-09-14 17:28:52 +0100
committerErik Johnston <erik@matrix.org>2016-09-14 17:42:47 +0100
commitc566f0ee17ee015e1a841e209f202c6e8aefdfcd (patch)
tree27eef531bb66ba5813173a7eb27a7f424f70e86b /synapse/storage/stream.py
parentRefactor public rooms to not pull out the full state for each room (diff)
downloadsynapse-c566f0ee17ee015e1a841e209f202c6e8aefdfcd.tar.xz
Calculate the public room list from a stream_ordering
Diffstat (limited to '')
-rw-r--r--synapse/storage/stream.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/storage/stream.py b/synapse/storage/stream.py
index 0577a0525b..07ea969d4d 100644
--- a/synapse/storage/stream.py
+++ b/synapse/storage/stream.py
@@ -531,6 +531,9 @@ class StreamStore(SQLBaseStore):
             )
             defer.returnValue("t%d-%d" % (topo, token))
 
+    def get_room_max_stream_ordering(self):
+        return self._stream_id_gen.get_current_token()
+
     def get_stream_token_for_event(self, event_id):
         """The stream token for an event
         Args: