Skip to content

Commit

Permalink
Merge pull request #4 from wirecardBrasil/fix/uri_redis_settings
Browse files Browse the repository at this point in the history
Added panic if connection got error
  • Loading branch information
guilhermewirecard committed Dec 16, 2021
2 parents ac2fc4d + 99d3e4e commit ac6324b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gcurtain.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ type GCurtain struct {
}

func (g *GCurtain) Init(uri string) {
uriParsed, _ := redis.ParseURL(uri)
uriParsed, err := redis.ParseURL(uri)

if err != nil {
panic(err)
}

g.redisClient = redis.NewClient(uriParsed)
}

Expand Down

0 comments on commit ac6324b

Please sign in to comment.