Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
Added panic if connection got error
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermewirecard committed Dec 16, 2021
1 parent 173ac27 commit 99d3e4e
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 99d3e4e

Please sign in to comment.