1 files changed, 0 insertions, 49 deletions
diff --git a/synapse/config/workers.py b/synapse/config/workers.py
index e1569b3c14..f2716422b5 100644
--- a/synapse/config/workers.py
+++ b/synapse/config/workers.py
@@ -410,55 +410,6 @@ class WorkerConfig(Config):
# (By this point, these are either the same value or only one is not None.)
return bool(new_option_should_run_here or legacy_option_should_run_here)
- def generate_config_section(self, **kwargs: Any) -> str:
- return """\
- ## Workers ##
-
- # Disables sending of outbound federation transactions on the main process.
- # Uncomment if using a federation sender worker.
- #
- #send_federation: false
-
- # It is possible to run multiple federation sender workers, in which case the
- # work is balanced across them.
- #
- # This configuration must be shared between all federation sender workers, and if
- # changed all federation sender workers must be stopped at the same time and then
- # started, to ensure that all instances are running with the same config (otherwise
- # events may be dropped).
- #
- #federation_sender_instances:
- # - federation_sender1
-
- # When using workers this should be a map from `worker_name` to the
- # HTTP replication listener of the worker, if configured.
- #
- #instance_map:
- # worker1:
- # host: localhost
- # port: 8034
-
- # Experimental: When using workers you can define which workers should
- # handle event persistence and typing notifications. Any worker
- # specified here must also be in the `instance_map`.
- #
- #stream_writers:
- # events: worker1
- # typing: worker1
-
- # The worker that is used to run background tasks (e.g. cleaning up expired
- # data). If not provided this defaults to the main process.
- #
- #run_background_tasks_on: worker1
-
- # A shared secret used by the replication APIs to authenticate HTTP requests
- # from workers.
- #
- # By default this is unused and traffic is not authenticated.
- #
- #worker_replication_secret: ""
- """
-
def read_arguments(self, args: argparse.Namespace) -> None:
# We support a bunch of command line arguments that override options in
# the config. A lot of these options have a worker_* prefix when running
|