Skip to content

Commit

Permalink
Merge pull request #3 from wirecardBrasil/fix/uri_redis_settings
Browse files Browse the repository at this point in the history
Fixed to use URI instead only the host and port
  • Loading branch information
guilhermewirecard committed Dec 16, 2021
2 parents ffb2c5f + 173ac27 commit ac2fc4d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gcurtain.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ type GCurtain struct {
}

func (g *GCurtain) Init(uri string) {
g.redisClient = redis.NewClient(&redis.Options{
Addr: uri,
})
uriParsed, _ := redis.ParseURL(uri)
g.redisClient = redis.NewClient(uriParsed)
}

func (g *GCurtain) IsOpen(feature string, users ...string) bool {
Expand Down

0 comments on commit ac2fc4d

Please sign in to comment.