This commit is contained in:
Liang Ding 2022-08-22 09:57:52 +08:00
parent b61dfc2a7f
commit 2abcd97262
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 10 additions and 10 deletions

View file

@ -153,7 +153,7 @@ func (box *Box) GetConf() (ret *conf.BoxConf) {
return
}
data, err := filelock.LockFileRead(confPath)
data, err := filelock.NoLockFileRead(confPath)
if nil != err {
logging.LogErrorf("read box conf [%s] failed: %s", confPath, err)
return
@ -192,7 +192,7 @@ func (box *Box) saveConf0(data []byte) {
if err := os.MkdirAll(filepath.Join(util.DataDir, box.ID, ".siyuan"), 0755); nil != err {
logging.LogErrorf("save box conf [%s] failed: %s", confPath, err)
}
if err := filelock.LockFileWrite(confPath, data); nil != err {
if err := filelock.NoLockFileWrite(confPath, data); nil != err {
logging.LogErrorf("save box conf [%s] failed: %s", confPath, err)
}
}