diff options
author | Erik Johnston <erik@matrix.org> | 2021-01-26 13:57:31 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-26 13:57:31 +0000 |
commit | dd8da8c5f6ac525a7456437913a03f68d4504605 (patch) | |
tree | bdb8f0272ab4a4034091c9bd428ed7390bbb92d8 /synapse/replication/tcp/handler.py | |
parent | Try to recover from unknown encodings when previewing media. (#9164) (diff) | |
download | synapse-dd8da8c5f6ac525a7456437913a03f68d4504605.tar.xz |
Precompute joined hosts and store in Redis (#9198)
Diffstat (limited to 'synapse/replication/tcp/handler.py')
-rw-r--r-- | synapse/replication/tcp/handler.py | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/synapse/replication/tcp/handler.py b/synapse/replication/tcp/handler.py index 58d46a5951..8ea8dcd587 100644 --- a/synapse/replication/tcp/handler.py +++ b/synapse/replication/tcp/handler.py @@ -286,13 +286,6 @@ class ReplicationCommandHandler: if hs.config.redis.redis_enabled: from synapse.replication.tcp.redis import ( RedisDirectTcpReplicationClientFactory, - lazyConnection, - ) - - logger.info( - "Connecting to redis (host=%r port=%r)", - hs.config.redis_host, - hs.config.redis_port, ) # First let's ensure that we have a ReplicationStreamer started. @@ -303,13 +296,7 @@ class ReplicationCommandHandler: # connection after SUBSCRIBE is called). # First create the connection for sending commands. - outbound_redis_connection = lazyConnection( - hs=hs, - host=hs.config.redis_host, - port=hs.config.redis_port, - password=hs.config.redis.redis_password, - reconnect=True, - ) + outbound_redis_connection = hs.get_outbound_redis_connection() # Now create the factory/connection for the subscription stream. self._factory = RedisDirectTcpReplicationClientFactory( |