mirror of
https://github.com/gofiber/storage.git
synced 2025-10-05 08:37:10 +08:00
👀 expose DB
This commit is contained in:
@@ -77,8 +77,7 @@ func New(config ...Config) *Storage {
|
||||
|
||||
ctx, cancel := context.WithTimeout(context.TODO(), 20*time.Second)
|
||||
defer cancel()
|
||||
err = client.Connect(ctx)
|
||||
if err != nil {
|
||||
if err = client.Connect(ctx); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user