Compare commits
1 Commits
master
...
hotfix/hot
Author | SHA1 | Date |
---|---|---|
|
e6c8e56e76 |
|
@ -3,12 +3,13 @@ package internal
|
|||
import (
|
||||
"database/sql"
|
||||
"fmt"
|
||||
_ "github.com/go-sql-driver/mysql"
|
||||
"github.com/jmoiron/sqlx"
|
||||
"log"
|
||||
"os"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
_ "github.com/go-sql-driver/mysql"
|
||||
"github.com/jmoiron/sqlx"
|
||||
)
|
||||
|
||||
type database struct {
|
||||
|
@ -43,9 +44,9 @@ func initialize() {
|
|||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
if db.Ping() != nil {
|
||||
panic(err)
|
||||
conErr := db.Ping()
|
||||
if conErr != nil {
|
||||
panic(conErr)
|
||||
}
|
||||
|
||||
log.Println("Connection to db succeded")
|
||||
|
|
Loading…
Reference in New Issue