mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-18 15:10:03 +00:00
Bump golangci-lint to v1.24.0, linter fixes and general code improvements (#478)
* Bump golangci-lint version, update Go version deps and generic code improvements * Fix wesbocket resp nil check and zip closures * Update pprof path
This commit is contained in:
@@ -9,12 +9,11 @@ import (
|
||||
"github.com/thrasher-corp/gocryptotrader/database/drivers"
|
||||
)
|
||||
|
||||
// Db holds all information for a database instance
|
||||
type Db struct {
|
||||
SQL *sql.DB
|
||||
DataPath string
|
||||
Config *Config
|
||||
|
||||
// Instance holds all information for a database instance
|
||||
type Instance struct {
|
||||
SQL *sql.DB
|
||||
DataPath string
|
||||
Config *Config
|
||||
Connected bool
|
||||
Mu sync.RWMutex
|
||||
}
|
||||
@@ -29,7 +28,7 @@ type Config struct {
|
||||
|
||||
var (
|
||||
// DB Global Database Connection
|
||||
DB = &Db{}
|
||||
DB = &Instance{}
|
||||
|
||||
// MigrationDir which folder to look in for current migrations
|
||||
MigrationDir = filepath.Join("..", "..", "database", "migrations")
|
||||
|
||||
Reference in New Issue
Block a user