Merge pull request #340 from gravitl/feature_v0.8.3_cleanup

code linting
This commit is contained in:
Alex
2021-10-08 15:12:19 -04:00
committed by GitHub
49 changed files with 439 additions and 215 deletions

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"
@@ -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 {