fix(cache): panic if redis connection fails
This commit is contained in:
parent
37926e3133
commit
31d4a3445d
1 changed files with 1 additions and 2 deletions
3
pkg/cache/redis.go
vendored
3
pkg/cache/redis.go
vendored
|
@ -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
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue