mirror of https://github.com/cloudreve/Cloudreve
fix(cache): panic if redis connection fails
parent
37926e3133
commit
31d4a3445d
|
@ -66,8 +66,7 @@ func NewRedisStore(size int, network, address, password, database string) *Redis
|
||||||
redis.DialPassword(password),
|
redis.DialPassword(password),
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
util.Log().Warning("Failed to create Redis connection: %s", err)
|
util.Log().Panic("Failed to create Redis connection: %s", err)
|
||||||
return nil, err
|
|
||||||
}
|
}
|
||||||
return c, nil
|
return c, nil
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue