feat(platform): support redis sentinel for failover
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
1 parent
dbae2870bc
commit
2bd3d0a18e
5 files changed
+110
-13
No files matched your search
@@ -57,7 +57,7 @@ func Connect(ctx context.Context, c config.Common, log *slog.Logger) (*Deps, err
|
||||
if d.DB, err = OpenPostgres(ctx, c.DatabaseURL); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if d.Redis, err = OpenRedis(ctx, c.RedisURL); err != nil {
|
||||
if d.Redis, err = OpenRedis(ctx, c); err != nil {
|
||||
d.Close()
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user