From e3958febc712c0fcd5c3f2a64e1ee20c74dfae4a Mon Sep 17 00:00:00 2001 From: Tyler Date: Thu, 15 Apr 2021 00:00:36 -0400 Subject: [PATCH] Resolve issue with Redis provider --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 6e83b02..2eaae6d 100644 --- a/main.go +++ b/main.go @@ -105,7 +105,7 @@ func main() { if viper.GetBool("hosts.redis.enable") { rc := redis.NewClient(&redis.Options{Addr: redisConfig.Addr(), DB: redisConfig.DB, Password: redisConfig.Password}) - providers = append(providers, hosts.NewRedisProvider(rc, viper.GetString("hosts.redis.key"), viper.GetDuration("hosts.redis.ttl"))) + providers = append(providers, hosts.NewRedisProvider(rc, viper.GetString("hosts.redis.key"))) } if viper.GetBool("api.enabled") {