diff options
author | Erik Johnston <erik@matrix.org> | 2017-04-11 16:07:33 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-04-11 16:07:33 +0100 |
commit | 9c712a366fbbba90dbe18f7246c279d3cbb1cf10 (patch) | |
tree | 6dd73cf7a692cba727f3277fbc4ebc37aed8a431 /synapse/replication/slave/storage/presence.py | |
parent | Comment (diff) | |
download | synapse-9c712a366fbbba90dbe18f7246c279d3cbb1cf10.tar.xz |
Move get_presence_list_* to SlaveStore
Diffstat (limited to 'synapse/replication/slave/storage/presence.py')
-rw-r--r-- | synapse/replication/slave/storage/presence.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/synapse/replication/slave/storage/presence.py b/synapse/replication/slave/storage/presence.py index dffc80adc3..cfb9280181 100644 --- a/synapse/replication/slave/storage/presence.py +++ b/synapse/replication/slave/storage/presence.py @@ -39,6 +39,16 @@ class SlavedPresenceStore(BaseSlavedStore): _get_presence_for_user = PresenceStore.__dict__["_get_presence_for_user"] get_presence_for_users = PresenceStore.__dict__["get_presence_for_users"] + # XXX: This is a bit broken because we don't persist the accepted list in a + # way that can be replicated. This means that we don't have a way to + # invalidate the cache correctly. + get_presence_list_accepted = PresenceStore.__dict__[ + "get_presence_list_accepted" + ] + get_presence_list_observers_accepted = PresenceStore.__dict__[ + "get_presence_list_observers_accepted" + ] + def get_current_presence_token(self): return self._presence_id_gen.get_current_token() |