summary refs log tree commit diff
path: root/synapse/replication/tcp/handler.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2021-03-15 11:14:39 -0400
committerGitHub <noreply@github.com>2021-03-15 11:14:39 -0400
commitd29b71aa50f568c3b951b95f2ea3009292b95630 (patch)
tree716219dfb3531e33e99333f2f48131c968d5cec0 /synapse/replication/tcp/handler.py
parentDon't go into federation catch up mode so easily (#9561) (diff)
downloadsynapse-d29b71aa50f568c3b951b95f2ea3009292b95630.tar.xz
Fix remaining mypy issues due to Twisted upgrade. (#9608)
Diffstat (limited to 'synapse/replication/tcp/handler.py')
-rw-r--r--synapse/replication/tcp/handler.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/replication/tcp/handler.py b/synapse/replication/tcp/handler.py

index ee909f3fc5..a8894beadf 100644 --- a/synapse/replication/tcp/handler.py +++ b/synapse/replication/tcp/handler.py
@@ -302,7 +302,7 @@ class ReplicationCommandHandler: hs, outbound_redis_connection ) hs.get_reactor().connectTCP( - hs.config.redis.redis_host, + hs.config.redis.redis_host.encode(), hs.config.redis.redis_port, self._factory, ) @@ -311,7 +311,7 @@ class ReplicationCommandHandler: self._factory = DirectTcpReplicationClientFactory(hs, client_name, self) host = hs.config.worker_replication_host port = hs.config.worker_replication_port - hs.get_reactor().connectTCP(host, port, self._factory) + hs.get_reactor().connectTCP(host.encode(), port, self._factory) def get_streams(self) -> Dict[str, Stream]: """Get a map from stream name to all streams."""