summary refs log tree commit diff
path: root/synapse/config
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/config
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/config')
-rw-r--r--synapse/config/workers.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/synapse/config/workers.py b/synapse/config/workers.py
index 9f81a73d6f..7ecf349e4a 100644
--- a/synapse/config/workers.py
+++ b/synapse/config/workers.py
@@ -156,7 +156,7 @@ class WriterLocations:
             can only be a single instance.
         presence: The instances that write to the presence stream. Currently
             can only be a single instance.
-        push: The instances that write to the push stream. Currently
+        push_rules: The instances that write to the push stream. Currently
             can only be a single instance.
     """
 
@@ -184,7 +184,7 @@ class WriterLocations:
         default=["master"],
         converter=_instance_to_list_converter,
     )
-    push: List[str] = attr.ib(
+    push_rules: List[str] = attr.ib(
         default=["master"],
         converter=_instance_to_list_converter,
     )
@@ -347,7 +347,7 @@ class WorkerConfig(Config):
             "account_data",
             "receipts",
             "presence",
-            "push",
+            "push_rules",
         ):
             instances = _instance_to_list_converter(getattr(self.writers, stream))
             for instance in instances:
@@ -385,7 +385,7 @@ class WorkerConfig(Config):
                 "Must only specify one instance to handle `presence` messages."
             )
 
-        if len(self.writers.push) != 1:
+        if len(self.writers.push_rules) != 1:
             raise ConfigError(
                 "Must only specify one instance to handle `push` messages."
             )