summary refs log tree commit diff
path: root/synapse/replication/slave
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-02-13 13:50:03 +0000
committerErik Johnston <erik@matrix.org>2017-02-13 13:50:03 +0000
commit9e617cd4c2da527caf93799e286b42352ad492d2 (patch)
treef704af83069af931659657a88ebaba6ac7cf6de8 /synapse/replication/slave
parentMerge pull request #1912 from matrix-org/markjh/roominitialsync (diff)
downloadsynapse-9e617cd4c2da527caf93799e286b42352ad492d2.tar.xz
Cache get_presence storage
Diffstat (limited to 'synapse/replication/slave')
-rw-r--r--synapse/replication/slave/storage/presence.py4
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()