summary refs log tree commit diff
path: root/synapse/storage/__init__.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2016-03-04 14:44:01 +0000
committerMark Haines <mark.haines@matrix.org>2016-03-04 14:44:01 +0000
commit1b4f4a936fb416d81203fcd66be690f9a04b2b62 (patch)
treee9d7be97688385f7d221822495bbf6ee19401600 /synapse/storage/__init__.py
parentMove the code for formatting push rules into a separate function (diff)
downloadsynapse-1b4f4a936fb416d81203fcd66be690f9a04b2b62.tar.xz
Hook up the push rules stream to account_data in /sync
Diffstat (limited to 'synapse/storage/__init__.py')
-rw-r--r--synapse/storage/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/storage/__init__.py b/synapse/storage/__init__.py
index e2d7b52569..7b7b03d052 100644
--- a/synapse/storage/__init__.py
+++ b/synapse/storage/__init__.py
@@ -160,6 +160,11 @@ class DataStore(RoomMemberStore, RoomStore,
             prefilled_cache=presence_cache_prefill
         )
 
+        self.push_rules_stream_cache = StreamChangeCache(
+            "PushRulesStreamChangeCache",
+            self._push_rules_stream_id_gen.get_max_token()[0],
+        )
+
         super(DataStore, self).__init__(hs)
 
     def take_presence_startup_info(self):