chore: format

This commit is contained in:
Timothy Jaeryang Baek committed 2025-04-12 16:35:11 -07:00
1 parent 77b25ae36a
commit 91a455a284
61 files changed
+1157 -203

No files matched your search

+3 -1
View File
@@ -52,5 +52,7 @@ def get_sentinel_url_from_env(redis_url, sentinel_hosts_env, sentinel_port_env):
auth_part = ""
if username or password:
auth_part = f"{username}:{password}@"
hosts_part = ",".join(f"{host}:{sentinel_port_env}" for host in sentinel_hosts_env.split(","))
hosts_part = ",".join(
f"{host}:{sentinel_port_env}" for host in sentinel_hosts_env.split(",")
)
return f"redis+sentinel://{auth_part}{hosts_part}/{redis_config['db']}/{redis_config['service']}"