diff options
author | Erik Johnston <erik@matrix.org> | 2016-09-14 17:28:52 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-09-14 17:42:47 +0100 |
commit | c566f0ee17ee015e1a841e209f202c6e8aefdfcd (patch) | |
tree | 27eef531bb66ba5813173a7eb27a7f424f70e86b /synapse/storage/stream.py | |
parent | Refactor public rooms to not pull out the full state for each room (diff) | |
download | synapse-c566f0ee17ee015e1a841e209f202c6e8aefdfcd.tar.xz |
Calculate the public room list from a stream_ordering
Diffstat (limited to 'synapse/storage/stream.py')
-rw-r--r-- | synapse/storage/stream.py | 3 |
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: |