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 /tests/replication/_base.py | |
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 'tests/replication/_base.py')
-rw-r--r-- | tests/replication/_base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/replication/_base.py b/tests/replication/_base.py index a7a05a564f..9c5df266bd 100644 --- a/tests/replication/_base.py +++ b/tests/replication/_base.py @@ -251,7 +251,7 @@ class BaseMultiWorkerStreamTestCase(unittest.HomeserverTestCase): self.connect_any_redis_attempts, ) - self.hs.get_tcp_replication().start_replication(self.hs) + self.hs.get_replication_command_handler().start_replication(self.hs) # When we see a connection attempt to the master replication listener we # automatically set up the connection. This is so that tests don't @@ -375,7 +375,7 @@ class BaseMultiWorkerStreamTestCase(unittest.HomeserverTestCase): ) if worker_hs.config.redis.redis_enabled: - worker_hs.get_tcp_replication().start_replication(worker_hs) + worker_hs.get_replication_command_handler().start_replication(worker_hs) return worker_hs |