summary refs log tree commit diff
path: root/synapse/replication
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-06-21 14:19:33 +0100
committerErik Johnston <erik@matrix.org>2017-06-21 14:19:33 +0100
commitdae9a00a28cbd9e40be521effb25b0b2528caa4f (patch)
treebff8e81ef6a1abbe5e1602f6ebf37a69790c5f79 /synapse/replication
parentFix for workers (diff)
downloadsynapse-dae9a00a28cbd9e40be521effb25b0b2528caa4f.tar.xz
Initialise exclusive_user_regex
Diffstat (limited to 'synapse/replication')
-rw-r--r--synapse/replication/slave/storage/appservice.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/replication/slave/storage/appservice.py b/synapse/replication/slave/storage/appservice.py
index 73048327c5..0d3f31a50c 100644
--- a/synapse/replication/slave/storage/appservice.py
+++ b/synapse/replication/slave/storage/appservice.py
@@ -16,6 +16,7 @@
 from ._base import BaseSlavedStore
 from synapse.storage import DataStore
 from synapse.config.appservice import load_appservices
+from synapse.storage.appservice import _make_exclusive_regex
 
 
 class SlavedApplicationServiceStore(BaseSlavedStore):
@@ -25,6 +26,7 @@ class SlavedApplicationServiceStore(BaseSlavedStore):
             hs.config.server_name,
             hs.config.app_service_config_files
         )
+        self.exclusive_user_regex = _make_exclusive_regex(self.services_cache)
 
     get_app_service_by_token = DataStore.get_app_service_by_token.__func__
     get_app_service_by_user_id = DataStore.get_app_service_by_user_id.__func__