code linting

This commit is contained in:
0xdcarns
2021-10-08 15:07:12 -04:00
parent a892595f78
commit d7cafbbc4c
49 changed files with 439 additions and 215 deletions
+3 -3
View File
@@ -2,10 +2,10 @@ package database
import (
"encoding/json"
"time"
"errors"
"log"
"github.com/gravitl/netmaker/servercfg"
"log"
"time"
)
const NETWORKS_TABLE_NAME = "networks"
@@ -44,7 +44,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 {