Skip to content

Commit

Permalink
linting part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
mativm02 committed Jan 22, 2024
1 parent 4352f70 commit c393441
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storage/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
var (
redisClusterSingleton *RedisManager
redisLogPrefix = "redis"
ENV_REDIS_PREFIX = "TYK_PMP_REDIS"
envRedisPrefix = "TYK_PMP_REDIS"
ctx = context.Background()
)

Expand Down Expand Up @@ -204,7 +204,7 @@ func (r *RedisClusterStorageManager) Init(config interface{}) error {
}).Fatal("Failed to decode configuration: ", err)
}

overrideErr := envconfig.Process(ENV_REDIS_PREFIX, &r.Config)
overrideErr := envconfig.Process(envRedisPrefix, &r.Config)
if overrideErr != nil {
log.Error("Failed to process environment variables for redis: ", overrideErr)
}
Expand Down

0 comments on commit c393441

Please sign in to comment.