浏览代码

sync file when save

cnlh 5 年之前
父节点
当前提交
ef3dc10215
共有 1 个文件被更改,包括 1 次插入0 次删除
  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()
 }