summary refs log tree commit diff
path: root/synapse/replication/slave/storage/presence.py
diff options
context:
space:
mode:
authorErik Johnston <erikj@jki.re>2017-02-13 16:59:19 +0100
committerGitHub <noreply@github.com>2017-02-13 16:59:19 +0100
commitd7457c7661fa3b28427b21f44252c3abbee45ef8 (patch)
tree791531c7181bf2383b06cfbf1c0f62340d26a943 /synapse/replication/slave/storage/presence.py
parentMerge pull request #1913 from matrix-org/kegan/dont-cache-errors (diff)
parentCache get_presence storage (diff)
downloadsynapse-d7457c7661fa3b28427b21f44252c3abbee45ef8.tar.xz
Merge pull request #1914 from matrix-org/erikj/cache_presence
Cache get_presence storage
Diffstat (limited to 'synapse/replication/slave/storage/presence.py')
-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()