summary refs log tree commit diff
path: root/synapse/handlers
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/handlers
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/handlers')
-rw-r--r--synapse/handlers/room_member.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/synapse/handlers/room_member.py b/synapse/handlers/room_member.py
index ee2e807afc..601d37341b 100644
--- a/synapse/handlers/room_member.py
+++ b/synapse/handlers/room_member.py
@@ -182,8 +182,10 @@ class RoomMemberHandler(metaclass=abc.ABCMeta):
             hs.config.server.forgotten_room_retention_period
         )
 
-        self._is_push_writer = hs.get_instance_name() in hs.config.worker.writers.push
-        self._push_writer = hs.config.worker.writers.push[0]
+        self._is_push_writer = (
+            hs.get_instance_name() in hs.config.worker.writers.push_rules
+        )
+        self._push_writer = hs.config.worker.writers.push_rules[0]
         self._copy_push_client = ReplicationCopyPusherRestServlet.make_client(hs)
 
     def _on_user_joined_room(self, event_id: str, room_id: str) -> None: