diff options
author | Erik Johnston <erik@matrix.org> | 2017-02-13 13:50:03 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-02-13 13:50:03 +0000 |
commit | 9e617cd4c2da527caf93799e286b42352ad492d2 (patch) | |
tree | f704af83069af931659657a88ebaba6ac7cf6de8 /synapse/replication/slave | |
parent | Merge pull request #1912 from matrix-org/markjh/roominitialsync (diff) | |
download | synapse-9e617cd4c2da527caf93799e286b42352ad492d2.tar.xz |
Cache get_presence storage
Diffstat (limited to 'synapse/replication/slave')
-rw-r--r-- | synapse/replication/slave/storage/presence.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/replication/slave/storage/presence.py b/synapse/replication/slave/storage/presence.py index 703f4a49bf..40f6c9a386 100644 --- a/synapse/replication/slave/storage/presence.py +++ b/synapse/replication/slave/storage/presence.py @@ -18,6 +18,7 @@ from ._slaved_id_tracker import SlavedIdTracker from synapse.util.caches.stream_change_cache import StreamChangeCache from synapse.storage import DataStore +from synapse.storage.presence import PresenceStore class SlavedPresenceStore(BaseSlavedStore): @@ -35,7 +36,8 @@ class SlavedPresenceStore(BaseSlavedStore): _get_active_presence = DataStore._get_active_presence.__func__ take_presence_startup_info = DataStore.take_presence_startup_info.__func__ - get_presence_for_users = DataStore.get_presence_for_users.__func__ + _get_presence_for_user = PresenceStore.__dict__["_get_presence_for_user"] + get_presence_for_users = PresenceStore.__dict__["get_presence_for_users"] def get_current_presence_token(self): return self._presence_id_gen.get_current_token() |