diff options
author | Erik Johnston <erikj@element.io> | 2024-03-28 16:29:23 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-28 16:29:23 +0000 |
commit | fd48fc45853eb193a22a08d874eb473e668e2d6a (patch) | |
tree | 6b0ae987eb4cedd4a616463f6fabf95f543e541a /synapse/storage/databases/main | |
parent | Add support for moving `/push_rules` off of main process (#17037) (diff) | |
download | synapse-fd48fc45853eb193a22a08d874eb473e668e2d6a.tar.xz |
Fixups to new push stream (#17038)
Follow on from #17037
Diffstat (limited to 'synapse/storage/databases/main')
-rw-r--r-- | synapse/storage/databases/main/push_rule.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/storage/databases/main/push_rule.py b/synapse/storage/databases/main/push_rule.py index ed734f03ac..660c834518 100644 --- a/synapse/storage/databases/main/push_rule.py +++ b/synapse/storage/databases/main/push_rule.py @@ -136,7 +136,9 @@ class PushRulesWorkerStore( ): super().__init__(database, db_conn, hs) - self._is_push_writer = hs.get_instance_name() in hs.config.worker.writers.push + self._is_push_writer = ( + hs.get_instance_name() in hs.config.worker.writers.push_rules + ) # In the worker store this is an ID tracker which we overwrite in the non-worker # class below that is used on the main process. |