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

Commit 8b4e099

Browse files
committed
Put the reading from yaml back and add a logger warning per dmr's request.
1 parent dd9d895 commit 8b4e099

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

synapse/config/workers.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,11 @@ def read_config(self, config: JsonDict, **kwargs: Any) -> None:
155155
self.worker_name = config.get("worker_name", self.worker_app)
156156
self.instance_name = self.worker_name or "master"
157157

158+
# FIXME: Remove this check after a suitable amount of time.
159+
self.worker_main_http_uri = config.get("worker_main_http_uri", None)
160+
if self.worker_main_http_uri is not None:
161+
logger.warning("The config option worker_main_http_uri is unused since Synapse 1.72. It can be safely removed from your configuration.")
162+
158163
# This option is really only here to support `--manhole` command line
159164
# argument.
160165
manhole = config.get("worker_manhole")

0 commit comments

Comments
 (0)