Ver código fonte

Add the `batch_send` endpoint to generic workers (#12868)

tags/v1.61.0rc1
Nick Mills-Barrett 2 anos atrás
committed by GitHub
pai
commit
1f9013ce60
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados ID da chave GPG: 4AEE18F83AFDEB23
4 arquivos alterados com 5 adições e 0 exclusões
  1. +1
    -0
      changelog.d/12868.misc
  2. +1
    -0
      docker/configure_workers_and_start.py
  3. +1
    -0
      docs/workers.md
  4. +2
    -0
      synapse/app/generic_worker.py

+ 1
- 0
changelog.d/12868.misc Ver arquivo

@@ -0,0 +1 @@
Enable the `batch_send` endpoint on synapse worker processes. Contributed by Nick @ Beeper.

+ 1
- 0
docker/configure_workers_and_start.py Ver arquivo

@@ -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)/join/",
"^/_matrix/client/(api/v1|r0|v3|unstable)/profile/",
"^/_matrix/client/(v1|unstable/org.matrix.msc2716)/rooms/.*/batch_send",
],
"shared_extra_conf": {},
"worker_extra_conf": "",


+ 1
- 0
docs/workers.md Ver arquivo

@@ -206,6 +206,7 @@ information.
^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/members$
^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/state$
^/_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/(r0|v3|unstable)/account/3pid$
^/_matrix/client/(r0|v3|unstable)/account/whoami$


+ 2
- 0
synapse/app/generic_worker.py Ver arquivo

@@ -78,6 +78,7 @@ from synapse.rest.client import (
read_marker,
receipts,
room,
room_batch,
room_keys,
sendtodevice,
sync,
@@ -309,6 +310,7 @@ class GenericWorkerServer(HomeServer):
room.register_servlets(self, resource, is_worker=True)
room.register_deprecated_servlets(self, resource)
initial_sync.register_servlets(self, resource)
room_batch.register_servlets(self, resource)
room_keys.register_servlets(self, resource)
tags.register_servlets(self, resource)
account_data.register_servlets(self, resource)


Carregando…
Cancelar
Salvar