refactor join, fix network add; db retry connect; fix port issue; sqlite default

This commit is contained in:
afeiszli
2021-09-10 15:48:18 -04:00
parent a86047ae85
commit c0490061ee
12 changed files with 183 additions and 184 deletions

View File

@@ -10,7 +10,7 @@ import (
"os/signal"
"strconv"
"syscall"
"runtime/debug"
"github.com/gravitl/netmaker/netclient/command"
"github.com/gravitl/netmaker/netclient/config"
"github.com/gravitl/netmaker/netclient/local"
@@ -318,6 +318,8 @@ func main() {
},
}
setGarbageCollection()
if netclientutils.IsWindows() {
ncwindows.InitWindows()
} else {
@@ -364,3 +366,10 @@ func main() {
}
}
}
func setGarbageCollection(){
_, gcset := os.LookupEnv("GOGC");
if !gcset {
debug.SetGCPercent(netclientutils.DEFAULT_GC_PERCENT)
}
}