Resolve issue with Redis provider
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
2e0458ced5
commit
e3958febc7
2
main.go
2
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") {
|
||||
|
|
Loading…
Reference in New Issue