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

Commit

Permalink
Put the reading from yaml back and add a logger warning per dmr's req…
Browse files Browse the repository at this point in the history
…uest.
  • Loading branch information
realtyem committed Nov 14, 2022
1 parent dd9d895 commit 8b4e099
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions synapse/config/workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@ def read_config(self, config: JsonDict, **kwargs: Any) -> None:
self.worker_name = config.get("worker_name", self.worker_app)
self.instance_name = self.worker_name or "master"

# FIXME: Remove this check after a suitable amount of time.
self.worker_main_http_uri = config.get("worker_main_http_uri", None)
if self.worker_main_http_uri is not None:
logger.warning("The config option worker_main_http_uri is unused since Synapse 1.72. It can be safely removed from your configuration.")

# This option is really only here to support `--manhole` command line
# argument.
manhole = config.get("worker_manhole")
Expand Down

0 comments on commit 8b4e099

Please sign in to comment.