mirror of https://github.com/ehang-io/nps
sync file when save
parent
b43bcb1c96
commit
ef3dc10215
|
@ -177,4 +177,5 @@ func storeSyncMapToFile(m sync.Map, filePath string) {
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
})
|
})
|
||||||
|
file.Sync()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue