Skip to content

Commit 1aa8264

Browse files
committed
Reimplement element-io.synapse.process.hasReplication in terms of element-io.synapse.process.streamWriters
1 parent e6d9330 commit 1aa8264

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

charts/matrix-stack/templates/synapse/_synapse_details.tpl

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,7 @@ hasHttp
1616
{{- define "element-io.synapse.process.hasReplication" -}}
1717
{{- $root := .root -}}
1818
{{- with required "element-io.synapse.process.hasReplication missing context" .context -}}
19-
{{- $hasReplication := (list "main"
20-
"account-data"
21-
"device-lists"
22-
"encryption"
23-
"event-persister"
24-
"push-rules"
25-
"presence-writer"
26-
"receipts"
27-
"typing-persister") }}
28-
{{- if has . $hasReplication -}}
19+
{{- if or (eq . "main") (gt (len ((include "element-io.synapse.process.streamWriters" (dict "root" $root "context" .)) | fromJsonArray)) 0) -}}
2920
hasReplication
3021
{{- end -}}
3122
{{- end -}}

newsfragments/645.changed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Source whether Synapse workers serve HTTP endpoints or have replication from other configuration to improve consistency of configuration.

0 commit comments

Comments
 (0)