mengqiankang 1 miesiąc temu
rodzic
commit
b928060de9
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      alien_gateway/config.py

+ 1 - 1
alien_gateway/config.py

@@ -94,7 +94,7 @@ class Settings(BaseSettings):
         sentinel_pwd = self.REDIS_SENTINEL_PASSWORD or self.REDIS_PASSWORD
         auth = f":{quote(sentinel_pwd, safe='')}@" if sentinel_pwd else ""
         return ";".join(
-            f"sentinel://{auth}{host}:{port}/{self.REDIS_DB}"
+            f"redis+sentinel://{host}:{port}/{self.REDIS_DB}"
             for host, port in self.REDIS_SENTINEL_NODES
         )