mirror of
https://github.com/cloudreve/Cloudreve.git
synced 2024-04-21 12:31:40 +00:00
fix(cache): panic if redis connection fails
This commit is contained in:
Vendored
+1
-2
@@ -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
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user