From ef3dc10215853f3c6bd514e2d1c282c2390bdf86 Mon Sep 17 00:00:00 2001 From: cnlh Date: Tue, 11 Feb 2020 19:54:16 +0800 Subject: [PATCH] sync file when save --- lib/file/file.go | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/file/file.go b/lib/file/file.go index beab47f..9e28e95 100644 --- a/lib/file/file.go +++ b/lib/file/file.go @@ -177,4 +177,5 @@ func storeSyncMapToFile(m sync.Map, filePath string) { } return true }) + file.Sync() }