👀 expose DB

This commit is contained in:
Fenny
2020-10-31 11:27:51 +01:00
parent 0d15cb4e81
commit cc186961ee
4 changed files with 38 additions and 39 deletions

View File

@@ -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)
}