From 7233d386902d03bf2785d19324289f535ca7a81d Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Thu, 27 Feb 2020 13:07:39 +0000 Subject: Move stream fetch DB queries to worker stores. --- synapse/app/generic_worker.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'synapse/app/generic_worker.py') diff --git a/synapse/app/generic_worker.py b/synapse/app/generic_worker.py index cdc078cf11..5caba3160c 100644 --- a/synapse/app/generic_worker.py +++ b/synapse/app/generic_worker.py @@ -390,6 +390,9 @@ class GenericWorkerTyping(object): self._room_serials[row.room_id] = token self._room_typing[row.room_id] = row.user_ids + def get_current_token(self) -> int: + return self._latest_room_serial + class GenericWorkerSlavedStore( # FIXME(#3714): We need to add UserDirectoryStore as we write directly -- cgit 1.5.1