Fix:Redis configuration template error in v0.22.1 (#12685)

### What problem does this PR solve?
https://github.com/infiniflow/ragflow/issues/12674

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Stephen Hu
2026-01-27 12:47:46 +08:00
committed by GitHub
parent b36d9744ae
commit 52da81cf9e
5 changed files with 7 additions and 7 deletions

View File

@ -125,8 +125,8 @@ class RedisDB:
def __open__(self):
try:
conn_params = {
"host": self.config["host"].split(":")[0],
"port": int(self.config.get("host", ":6379").split(":")[1]),
"host": self.config["host"],
"port": int(self.config.get("port", 6379)),
"db": int(self.config.get("db", 1)),
"decode_responses": True,
}