🎨 工作空间/conf/conf.json 文件读写不再加锁 Fix https://github.com/siyuan-note/siyuan/issues/5664

This commit is contained in:
Liang Ding 2022-08-17 20:08:45 +08:00
parent e2c861a3dd
commit b467fc6698
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View file

@ -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)
}
}