diff options
author | Erik Johnston <erik@matrix.org> | 2020-10-02 09:57:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-02 09:57:12 +0100 |
commit | 6c5d5e507e629cf57ae8c1034879e8ffaef33e9f (patch) | |
tree | d7f1840507fca7a59ef0ffe0c5aafcff26274cae /synapse/replication/tcp/handler.py | |
parent | Add config option for always using "userinfo endpoint" for OIDC (#7658) (diff) | |
download | synapse-6c5d5e507e629cf57ae8c1034879e8ffaef33e9f.tar.xz |
Add unit test for event persister sharding (#8433)
Diffstat (limited to 'synapse/replication/tcp/handler.py')
-rw-r--r-- | synapse/replication/tcp/handler.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/replication/tcp/handler.py b/synapse/replication/tcp/handler.py index b323841f73..e92da7b263 100644 --- a/synapse/replication/tcp/handler.py +++ b/synapse/replication/tcp/handler.py @@ -251,10 +251,9 @@ class ReplicationCommandHandler: using TCP. """ if hs.config.redis.redis_enabled: - import txredisapi - from synapse.replication.tcp.redis import ( RedisDirectTcpReplicationClientFactory, + lazyConnection, ) logger.info( @@ -271,7 +270,8 @@ class ReplicationCommandHandler: # connection after SUBSCRIBE is called). # First create the connection for sending commands. - outbound_redis_connection = txredisapi.lazyConnection( + outbound_redis_connection = lazyConnection( + reactor=hs.get_reactor(), host=hs.config.redis_host, port=hs.config.redis_port, password=hs.config.redis.redis_password, |