mirror of
				https://github.com/gravitl/netmaker.git
				synced 2025-10-31 08:26:23 +08:00 
			
		
		
		
	moved mutex
This commit is contained in:
		
							parent
							
								
									679251cadf
								
							
						
					
					
						commit
						333a140c74
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -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) | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue