mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 工作空间/conf/conf.json 文件读写不再加锁 Fix https://github.com/siyuan-note/siyuan/issues/5664
This commit is contained in:
2
app/stage/protyle/js/lute/lute.min.js
vendored
2
app/stage/protyle/js/lute/lute.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -415,7 +415,7 @@ func (conf *AppConf) Save() {
|
||||
|
||||
func (conf *AppConf) save0(data []byte) {
|
||||
confPath := filepath.Join(util.ConfDir, "conf.json")
|
||||
if err := filelock.LockFileWrite(confPath, data); nil != err {
|
||||
if err := filelock.NoLockFileWrite(confPath, data); nil != err {
|
||||
logging.LogFatalf("write conf [%s] failed: %s", confPath, err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user