diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2022-03-10 08:01:56 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-10 13:01:56 +0000 |
commit | 3e4af36bc8515504721b3c1b1d64d4f45359bf88 (patch) | |
tree | e39ad5a0a4196056cce920ac906b39ed7417e501 /synapse/app | |
parent | Remove dead code in `tests/storage/test_database.py` (#12197) (diff) | |
download | synapse-3e4af36bc8515504721b3c1b1d64d4f45359bf88.tar.xz |
Rename get_tcp_replication to get_replication_command_handler. (#12192)
Since the object it returns is a ReplicationCommandHandler. This is clean-up from adding support to Redis where the command handler was added as an additional layer of abstraction from the TCP protocol.
Diffstat (limited to 'synapse/app')
-rw-r--r-- | synapse/app/generic_worker.py | 2 | ||||
-rw-r--r-- | synapse/app/homeserver.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/synapse/app/generic_worker.py b/synapse/app/generic_worker.py index 1536a42723..a10a63b06c 100644 --- a/synapse/app/generic_worker.py +++ b/synapse/app/generic_worker.py @@ -417,7 +417,7 @@ class GenericWorkerServer(HomeServer): else: logger.warning("Unsupported listener type: %s", listener.type) - self.get_tcp_replication().start_replication(self) + self.get_replication_command_handler().start_replication(self) def start(config_options: List[str]) -> None: diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py index a6789a840e..e4dc04c0b4 100644 --- a/synapse/app/homeserver.py +++ b/synapse/app/homeserver.py @@ -273,7 +273,7 @@ class SynapseHomeServer(HomeServer): # If redis is enabled we connect via the replication command handler # in the same way as the workers (since we're effectively a client # rather than a server). - self.get_tcp_replication().start_replication(self) + self.get_replication_command_handler().start_replication(self) for listener in self.config.server.listeners: if listener.type == "http": |