Skip to content
Snippets Groups Projects
Unverified Commit da9b2db3 authored by Richard van der Hoff's avatar Richard van der Hoff Committed by GitHub
Browse files

Drop support for redis.dbid (#7450)

Since we only use pubsub, the dbid is irrelevant.
parent d9b8d274
No related branches found
No related tags found
No related merge requests found
Add support for running replication over Redis when using workers.
......@@ -31,5 +31,4 @@ class RedisConfig(Config):
self.redis_host = redis_config.get("host", "localhost")
self.redis_port = redis_config.get("port", 6379)
self.redis_dbid = redis_config.get("dbid")
self.redis_password = redis_config.get("password")
......@@ -131,10 +131,9 @@ class ReplicationCommandHandler:
import txredisapi
logger.info(
"Connecting to redis (host=%r port=%r DBID=%r)",
"Connecting to redis (host=%r port=%r)",
hs.config.redis_host,
hs.config.redis_port,
hs.config.redis_dbid,
)
# We need two connections to redis, one for the subscription stream and
......@@ -145,7 +144,6 @@ class ReplicationCommandHandler:
outbound_redis_connection = txredisapi.lazyConnection(
host=hs.config.redis_host,
port=hs.config.redis_port,
dbid=hs.config.redis_dbid,
password=hs.config.redis.redis_password,
reconnect=True,
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment