Streamline context usage

This commit is contained in:
Abhishek Shroff
2024-08-07 21:37:46 +05:30
parent 7bee423382
commit 49ea467bc7
12 changed files with 60 additions and 56 deletions

View File

@@ -1,6 +1,7 @@
package command
import (
"context"
"os"
"path"
@@ -46,7 +47,7 @@ func SetupCommand() {
}
var err error
if database, err = db.NewDb(viper.GetString("database_url"), debug && viper.GetBool("trace_sql")); err != nil {
if database, err = db.NewDb(context.Background(), viper.GetString("database_url"), debug && viper.GetBool("trace_sql")); err != nil {
logrus.Fatal(err)
}
}