mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-16 13:51:42 +08:00
Merge pull request #340 from gravitl/feature_v0.8.3_cleanup
code linting
This commit is contained in:
@@ -2,10 +2,10 @@ package database
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"time"
|
||||
"errors"
|
||||
"log"
|
||||
"github.com/gravitl/netmaker/servercfg"
|
||||
"log"
|
||||
"time"
|
||||
)
|
||||
|
||||
const NETWORKS_TABLE_NAME = "networks"
|
||||
@@ -46,7 +46,7 @@ func getCurrentDB() map[string]interface{} {
|
||||
}
|
||||
|
||||
func InitializeDatabase() error {
|
||||
log.Println("connecting to",servercfg.GetDB())
|
||||
log.Println("connecting to", servercfg.GetDB())
|
||||
tperiod := time.Now().Add(10 * time.Second)
|
||||
for {
|
||||
if err := getCurrentDB()[INIT_DB].(func() error)(); err != nil {
|
||||
|
Reference in New Issue
Block a user