1 files changed, 0 insertions, 5 deletions
diff --git a/synapse/config/workers.py b/synapse/config/workers.py
index 2dfeb47c2e..1685468773 100644
--- a/synapse/config/workers.py
+++ b/synapse/config/workers.py
@@ -42,7 +42,6 @@ from synapse.config._base import (
)
from synapse.config._util import parse_and_validate_mapping
from synapse.config.server import (
- DIRECT_TCP_ERROR,
TCPListenerConfig,
parse_listener_def,
)
@@ -245,10 +244,6 @@ class WorkerConfig(Config):
raise ConfigError("worker_log_config must be a string")
self.worker_log_config = worker_log_config
- # The port on the main synapse for TCP replication
- if "worker_replication_port" in config:
- raise ConfigError(DIRECT_TCP_ERROR, ("worker_replication_port",))
-
# The shared secret used for authentication when connecting to the main synapse.
worker_replication_secret = config.get("worker_replication_secret", None)
if worker_replication_secret and not allow_secrets_in_config:
|