Add the `batch_send` endpoint to generic workers (#12868)
This commit is contained in:
parent
33e2916858
commit
1f9013ce60
|
@ -0,0 +1 @@
|
||||||
|
Enable the `batch_send` endpoint on synapse worker processes. Contributed by Nick @ Beeper.
|
|
@ -158,6 +158,7 @@ WORKERS_CONFIG: Dict[str, Dict[str, Any]] = {
|
||||||
"^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/(join|invite|leave|ban|unban|kick)$",
|
"^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/(join|invite|leave|ban|unban|kick)$",
|
||||||
"^/_matrix/client/(api/v1|r0|v3|unstable)/join/",
|
"^/_matrix/client/(api/v1|r0|v3|unstable)/join/",
|
||||||
"^/_matrix/client/(api/v1|r0|v3|unstable)/profile/",
|
"^/_matrix/client/(api/v1|r0|v3|unstable)/profile/",
|
||||||
|
"^/_matrix/client/(v1|unstable/org.matrix.msc2716)/rooms/.*/batch_send",
|
||||||
],
|
],
|
||||||
"shared_extra_conf": {},
|
"shared_extra_conf": {},
|
||||||
"worker_extra_conf": "",
|
"worker_extra_conf": "",
|
||||||
|
|
|
@ -206,6 +206,7 @@ information.
|
||||||
^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/members$
|
^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/members$
|
||||||
^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/state$
|
^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/state$
|
||||||
^/_matrix/client/(v1|unstable/org.matrix.msc2946)/rooms/.*/hierarchy$
|
^/_matrix/client/(v1|unstable/org.matrix.msc2946)/rooms/.*/hierarchy$
|
||||||
|
^/_matrix/client/(v1|unstable/org.matrix.msc2716)/rooms/.*/batch_send$
|
||||||
^/_matrix/client/unstable/im.nheko.summary/rooms/.*/summary$
|
^/_matrix/client/unstable/im.nheko.summary/rooms/.*/summary$
|
||||||
^/_matrix/client/(r0|v3|unstable)/account/3pid$
|
^/_matrix/client/(r0|v3|unstable)/account/3pid$
|
||||||
^/_matrix/client/(r0|v3|unstable)/account/whoami$
|
^/_matrix/client/(r0|v3|unstable)/account/whoami$
|
||||||
|
|
|
@ -78,6 +78,7 @@ from synapse.rest.client import (
|
||||||
read_marker,
|
read_marker,
|
||||||
receipts,
|
receipts,
|
||||||
room,
|
room,
|
||||||
|
room_batch,
|
||||||
room_keys,
|
room_keys,
|
||||||
sendtodevice,
|
sendtodevice,
|
||||||
sync,
|
sync,
|
||||||
|
@ -309,6 +310,7 @@ class GenericWorkerServer(HomeServer):
|
||||||
room.register_servlets(self, resource, is_worker=True)
|
room.register_servlets(self, resource, is_worker=True)
|
||||||
room.register_deprecated_servlets(self, resource)
|
room.register_deprecated_servlets(self, resource)
|
||||||
initial_sync.register_servlets(self, resource)
|
initial_sync.register_servlets(self, resource)
|
||||||
|
room_batch.register_servlets(self, resource)
|
||||||
room_keys.register_servlets(self, resource)
|
room_keys.register_servlets(self, resource)
|
||||||
tags.register_servlets(self, resource)
|
tags.register_servlets(self, resource)
|
||||||
account_data.register_servlets(self, resource)
|
account_data.register_servlets(self, resource)
|
||||||
|
|
Loading…
Reference in New Issue