moved mutex

This commit is contained in:
0xdcarns 2022-05-25 12:46:57 -04:00
parent 679251cadf
commit 333a140c74

View file

@ -50,6 +50,8 @@ func Dump() string {
if program != "netmaker" {
return ""
}
mu.Lock()
defer mu.Unlock()
var dumpString = ""
type keyVal struct {
Key string
@ -118,7 +120,5 @@ func FatalLog(message ...string) {
// resetLogs - reallocates logs map
func resetLogs() {
mu.Lock()
defer mu.Unlock()
currentLogs = make(map[string]entry)
}