summary refs log tree commit diff
path: root/synapse/replication/tcp/redis.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/redis.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/redis.py')
-rw-r--r--synapse/replication/tcp/redis.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/replication/tcp/redis.py b/synapse/replication/tcp/redis.py
index 7cccde097d..2f4d407f94 100644
--- a/synapse/replication/tcp/redis.py
+++ b/synapse/replication/tcp/redis.py
@@ -365,6 +365,6 @@ def lazyConnection(
     factory.continueTrying = reconnect
 
     reactor = hs.get_reactor()
-    reactor.connectTCP(host, port, factory, timeout=30, bindAddress=None)
+    reactor.connectTCP(host.encode(), port, factory, timeout=30, bindAddress=None)
 
     return factory.handler