Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 23775bf

Browse files
committed
Tweak comments
1 parent 7282900 commit 23775bf

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docker/configure_workers_and_start.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,21 +82,21 @@
8282
MAIN_PROCESS_UNIX_SOCKET_PRIVATE_PATH = "/run/main_private.sock"
8383

8484

85-
# Workers with exposed endpoints needs either "client", "federation", or "media" listener_resources
86-
# Watching /_matrix/client needs a "client" listener
87-
# Watching /_matrix/federation needs a "federation" listener
88-
# Watching /_matrix/media and related needs a "media" listener
89-
# Stream Writers require "client" and "replication" listeners because they
90-
# have to attach by instance_map to the master process and have client endpoints.
9185
@dataclass
9286
class WorkerTemplate:
9387
listener_resources: Set[str] = field(default_factory=set)
9488
endpoint_patterns: Set[str] = field(default_factory=set)
95-
# (worker_name) -> {}
89+
# (worker_name) -> {config}
9690
shared_extra_conf: Callable[[str], Dict[str, Any]] = lambda _worker_name: {}
9791
worker_extra_conf: str = ""
9892

9993

94+
# Workers with exposed endpoints needs either "client", "federation", or "media" listener_resources
95+
# Watching /_matrix/client needs a "client" listener
96+
# Watching /_matrix/federation needs a "federation" listener
97+
# Watching /_matrix/media and related needs a "media" listener
98+
# Stream Writers require "client" and "replication" listeners because they
99+
# have to attach by instance_map to the master process and have client endpoints.
100100
WORKERS_CONFIG: Dict[str, WorkerTemplate] = {
101101
"pusher": WorkerTemplate(),
102102
"user_dir": WorkerTemplate(

0 commit comments

Comments
 (0)