From 51eeed448010ea2866758b7852237ab009f4334a Mon Sep 17 00:00:00 2001 From: Tetrergeru Date: Wed, 13 Nov 2024 11:22:14 +0100 Subject: [PATCH] Fix config --- cmd/config.go | 2 ++ local/api.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/cmd/config.go b/cmd/config.go index 8688ddc19..c03ad048a 100644 --- a/cmd/config.go +++ b/cmd/config.go @@ -72,6 +72,8 @@ func (config *RedisConfig) GetSettings() redis.DatabaseConfig { SentinelUsername: config.SentinelUsername, SentinelPassword: config.SentinelPassword, MaxRetries: config.MaxRetries, + MinRetryBackoff: to.Duration(config.MinRetryBackoff), + MaxRetryBackoff: to.Duration(config.MaxRetryBackoff), MetricsTTL: to.Duration(config.MetricsTTL), DialTimeout: to.Duration(config.DialTimeout), ReadTimeout: to.Duration(config.ReadTimeout), diff --git a/local/api.yml b/local/api.yml index d852a09b5..fa390d578 100644 --- a/local/api.yml +++ b/local/api.yml @@ -2,6 +2,8 @@ redis: addrs: "redis:6379" metrics_ttl: 3h + min_retry_backoff: 1s + max_retry_backoff: 10s telemetry: graphite: enabled: true