summary refs log tree commit diff
path: root/synapse/rest/client/push_rule.py
diff options
context:
space:
mode:
authorErik Johnston <erikj@element.io>2024-03-28 16:29:23 +0000
committerGitHub <noreply@github.com>2024-03-28 16:29:23 +0000
commitfd48fc45853eb193a22a08d874eb473e668e2d6a (patch)
tree6b0ae987eb4cedd4a616463f6fabf95f543e541a /synapse/rest/client/push_rule.py
parentAdd support for moving `/push_rules` off of main process (#17037) (diff)
downloadsynapse-fd48fc45853eb193a22a08d874eb473e668e2d6a.tar.xz
Fixups to new push stream (#17038)
Follow on from #17037
Diffstat (limited to 'synapse/rest/client/push_rule.py')
-rw-r--r--synapse/rest/client/push_rule.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/rest/client/push_rule.py b/synapse/rest/client/push_rule.py

index 9c9bfc9794..af042504c9 100644 --- a/synapse/rest/client/push_rule.py +++ b/synapse/rest/client/push_rule.py
@@ -59,7 +59,9 @@ class PushRuleRestServlet(RestServlet): self.auth = hs.get_auth() self.store = hs.get_datastores().main self.notifier = hs.get_notifier() - self._is_push_worker = hs.get_instance_name() in hs.config.worker.writers.push + self._is_push_worker = ( + hs.get_instance_name() in hs.config.worker.writers.push_rules + ) self._push_rules_handler = hs.get_push_rules_handler() self._push_rule_linearizer = Linearizer(name="push_rules")