@@ -8,6 +8,7 @@ SPDX-License-Identifier: AGPL-3.0-only
8
8
{ {- $root := .root -} }
9
9
{ {- with required " element-io.synapse.process.hasHttp missing context" .context -} }
10
10
{ { $hasHttp := (list " main"
11
+ " account-data"
11
12
" client-reader"
12
13
" encryption"
13
14
" event-creator"
@@ -17,7 +18,7 @@ SPDX-License-Identifier: AGPL-3.0-only
17
18
" media-repository"
18
19
" presence-writer"
19
20
" push-rules"
20
- " receipts-account "
21
+ " receipts"
21
22
" sliding-sync"
22
23
" sso-login"
23
24
" synchrotron"
@@ -33,11 +34,12 @@ hasHttp
33
34
{ {- $root := .root -} }
34
35
{ {- with required " element-io.synapse.process.hasReplication missing context" .context -} }
35
36
{ {- $hasReplication := (list " main"
37
+ " account-data"
36
38
" encryption"
37
39
" event-persister"
38
40
" push-rules"
39
41
" presence-writer"
40
- " receipts-account "
42
+ " receipts"
41
43
" typing-persister" ) } }
42
44
{ {- if has . $hasReplication -} }
43
45
hasReplication
@@ -49,13 +51,14 @@ hasReplication
49
51
{ {- $root := .root -} }
50
52
{ {- with required " element-io.synapse.process.isSingle missing context" .context -} }
51
53
{ { $isSingle := (list " main"
54
+ " account-data"
52
55
" appservice"
53
56
" background"
54
57
" encryption"
55
58
" media-repository"
56
59
" presence-writer"
57
60
" push-rules"
58
- " receipts-account "
61
+ " receipts"
59
62
" sso-login"
60
63
" typing-persister"
61
64
" user-dir" ) } }
@@ -92,8 +95,6 @@ initial-sync
92
95
media-repo
93
96
{ {- else if eq . " presence-writer" -} }
94
97
presence-write
95
- { {- else if eq . " receipts-account" -} }
96
- receipts-accnt
97
98
{ {- else if eq . " typing-persister" -} }
98
99
typing
99
100
{ {- else -} }
@@ -131,16 +132,18 @@ responsibleForMedia
131
132
{ {- define " element-io.synapse.process.streamWriters" -} }
132
133
{ {- $root := .root -} }
133
134
{ {- with required " element-io.synapse.process.streamWriters missing context" .context -} }
134
- { {- if eq . " encryption" } }
135
+ { {- if eq . " account-data" } }
136
+ { { list " account_data" | toJson } }
137
+ { {- else if eq . " encryption" } }
135
138
{ { list " to_device" | toJson } }
136
139
{ {- else if eq . " event-persister" } }
137
140
{ { list " events" | toJson } }
138
141
{ {- else if eq . " presence-writer" } }
139
142
{ { list " presence" | toJson } }
140
143
{ {- else if eq . " push-rules" } }
141
144
{ { list " push_rules" | toJson } }
142
- { {- else if eq . " receipts-account " } }
143
- { { list " account_data " " receipts" | toJson } }
145
+ { {- else if eq . " receipts" } }
146
+ { { list " receipts" | toJson } }
144
147
{ {- else if eq . " typing-persister" } }
145
148
{ { list " typing" | toJson } }
146
149
{ {- else -} }
@@ -225,6 +228,13 @@ responsibleForMedia
225
228
{ {- with required " element-io.synapse.process.workerPaths missing context" .context -} }
226
229
{ { $workerPaths := list } }
227
230
231
+ { {- if eq .workerType " account-data" } }
232
+ { { $workerPaths = concat $workerPaths (list
233
+ " ^/_matrix/client/(r0|v3|unstable)/.*/tags"
234
+ " ^/_matrix/client/(r0|v3|unstable)/.*/account_data"
235
+ ) } }
236
+ { {- end } }
237
+
228
238
{ {- if eq .workerType " client-reader" } }
229
239
{ {- /* Client API requests (apart from createRoom which is eventCreator) */} }
230
240
{ { $workerPaths = concat $workerPaths (list
@@ -374,10 +384,8 @@ responsibleForMedia
374
384
) }}
375
385
{{- end }}
376
386
377
- {{- if eq .workerType "receipts-account " }}
387
+ {{- if eq .workerType "receipts" }}
378
388
{{ $workerPaths = concat $workerPaths (list
379
- "^/_matrix/client/(r0|v3|unstable)/.*/tags"
380
- "^/_matrix/client/(r0|v3|unstable)/.*/account_data"
381
389
"^/_matrix/client/(r0|v3|unstable)/rooms/.*/receipt"
382
390
"^/_matrix/client/(r0|v3|unstable)/rooms/.*/read_markers"
383
391
) }}
0 commit comments