|
20 | 20 | # * SYNAPSE_SERVER_NAME: The desired server_name of the homeserver.
|
21 | 21 | # * SYNAPSE_REPORT_STATS: Whether to report stats.
|
22 | 22 | # * SYNAPSE_WORKER_TYPES: A comma separated list of worker names as specified in WORKER_CONFIG
|
23 |
| -# below. Leave empty for no workers, or set to '*' for all possible workers. |
| 23 | +# below. Leave empty for no workers. |
24 | 24 | # * SYNAPSE_AS_REGISTRATION_DIR: If specified, a directory in which .yaml and .yml files
|
25 | 25 | # will be treated as Application Service registration files.
|
26 | 26 | # * SYNAPSE_TLS_CERT: Path to a TLS certificate in PEM format.
|
@@ -367,7 +367,7 @@ def add_worker_roles_to_shared_config(
|
367 | 367 | worker_port: int,
|
368 | 368 | ) -> None:
|
369 | 369 | """Given a dictionary representing a config file shared across all workers,
|
370 |
| - append sharded worker information to it for the current worker_type instance. |
| 370 | + append appropriate worker information to it for the current worker_type instance. |
371 | 371 |
|
372 | 372 | Args:
|
373 | 373 | shared_config: The config dict that all worker instances share (after being converted to YAML)
|
@@ -400,7 +400,7 @@ def add_worker_roles_to_shared_config(
|
400 | 400 |
|
401 | 401 | elif worker_type in ["account_data", "presence", "receipts", "to_device", "typing"]:
|
402 | 402 | # Update the list of stream writers
|
403 |
| - # It's convienent that the name of the worker type is the same as the event stream |
| 403 | + # It's convenient that the name of the worker type is the same as the stream to write |
404 | 404 | shared_config.setdefault("stream_writers", {}).setdefault(
|
405 | 405 | worker_type, []
|
406 | 406 | ).append(worker_name)
|
@@ -556,8 +556,7 @@ def generate_worker_files(
|
556 | 556 | if worker_config:
|
557 | 557 | worker_config = worker_config.copy()
|
558 | 558 | else:
|
559 |
| - log(worker_type + " is an unknown worker type! It will be ignored") |
560 |
| - continue |
| 559 | + error(worker_type + " is an unknown worker type! Please fix!") |
561 | 560 |
|
562 | 561 | new_worker_count = worker_type_counter.setdefault(worker_type, 0) + 1
|
563 | 562 | worker_type_counter[worker_type] = new_worker_count
|
|
0 commit comments