mirror of
https://github.com/mxpv/podsync.git
synced 2024-05-11 05:55:04 +00:00
Check Redis connection status
This commit is contained in:
@@ -198,5 +198,9 @@ func NewRedisStorage(redisUrl string) (*RedisStorage, error) {
|
||||
}
|
||||
|
||||
client := redis.NewClient(opts)
|
||||
if err := client.Ping().Err(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return &RedisStorage{client}, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user