瀏覽代碼

Fix Synapse pusher_instances not being populated correctly

This caused push notifications to be delivered more than once
if multiple `pusher` workers were enabled.
pull/2246/head
Slavi Pantaleev 3 年之前
父節點
當前提交
51674887ff
共有 1 個檔案被更改,包括 5 行新增0 行删除
  1. +5
    -0
      roles/custom/matrix-synapse/tasks/synapse/workers/util/inject_worker.yml

+ 5
- 0
roles/custom/matrix-synapse/tasks/synapse/workers/util/inject_worker.yml 查看文件

@@ -63,3 +63,8 @@
- ansible.builtin.set_fact:
matrix_synapse_instance_map: "{{ matrix_synapse_instance_map | combine({matrix_synapse_worker_details.name: {'host': matrix_synapse_worker_details.name, 'port': matrix_synapse_worker_details.replication_port}}) }}"
when: matrix_synapse_worker_details.type in matrix_synapse_known_instance_map_eligible_worker_types

# Inject pusher instances.
- ansible.builtin.set_fact:
matrix_synapse_federation_pusher_instances: "{{ matrix_synapse_federation_pusher_instances + [matrix_synapse_worker_details.name] }}"
when: matrix_synapse_worker_details.type == 'pusher'

Loading…
取消
儲存