Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 1f9013c

Browse files
authored
Add the batch_send endpoint to generic workers (#12868)
1 parent 33e2916 commit 1f9013c

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

changelog.d/12868.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Enable the `batch_send` endpoint on synapse worker processes. Contributed by Nick @ Beeper.

docker/configure_workers_and_start.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@
158158
"^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/(join|invite|leave|ban|unban|kick)$",
159159
"^/_matrix/client/(api/v1|r0|v3|unstable)/join/",
160160
"^/_matrix/client/(api/v1|r0|v3|unstable)/profile/",
161+
"^/_matrix/client/(v1|unstable/org.matrix.msc2716)/rooms/.*/batch_send",
161162
],
162163
"shared_extra_conf": {},
163164
"worker_extra_conf": "",

docs/workers.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ information.
206206
^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/members$
207207
^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/state$
208208
^/_matrix/client/(v1|unstable/org.matrix.msc2946)/rooms/.*/hierarchy$
209+
^/_matrix/client/(v1|unstable/org.matrix.msc2716)/rooms/.*/batch_send$
209210
^/_matrix/client/unstable/im.nheko.summary/rooms/.*/summary$
210211
^/_matrix/client/(r0|v3|unstable)/account/3pid$
211212
^/_matrix/client/(r0|v3|unstable)/account/whoami$

synapse/app/generic_worker.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878
read_marker,
7979
receipts,
8080
room,
81+
room_batch,
8182
room_keys,
8283
sendtodevice,
8384
sync,
@@ -309,6 +310,7 @@ def _listen_http(self, listener_config: ListenerConfig) -> None:
309310
room.register_servlets(self, resource, is_worker=True)
310311
room.register_deprecated_servlets(self, resource)
311312
initial_sync.register_servlets(self, resource)
313+
room_batch.register_servlets(self, resource)
312314
room_keys.register_servlets(self, resource)
313315
tags.register_servlets(self, resource)
314316
account_data.register_servlets(self, resource)

0 commit comments

Comments
 (0)