Explorar el Código

sync file when save

cnlh hace 5 años
padre
commit
ef3dc10215
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      lib/file/file.go

+ 1 - 0
lib/file/file.go

@@ -177,4 +177,5 @@ func storeSyncMapToFile(m sync.Map, filePath string) {
 		}
 		return true
 	})
+	file.Sync()
 }