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") {