Skip to content

Commit

Permalink
fix(cache): panic if redis connection fails
Browse files Browse the repository at this point in the history
  • Loading branch information
HFO4 committed May 25, 2023
1 parent 37926e3 commit 31d4a34
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/cache/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ func NewRedisStore(size int, network, address, password, database string) *Redis
redis.DialPassword(password),
)
if err != nil {
util.Log().Warning("Failed to create Redis connection: %s", err)
return nil, err
util.Log().Panic("Failed to create Redis connection: %s", err)
}
return c, nil
},
Expand Down

0 comments on commit 31d4a34

Please sign in to comment.