mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-24 07:54:07 +01:00
🎨 细化云端同步锁提升稳定性 https://github.com/siyuan-note/siyuan/issues/5887
This commit is contained in:
parent
cd3da736db
commit
e295c354d1
3 changed files with 7 additions and 4 deletions
|
|
@ -26,7 +26,6 @@ import (
|
|||
"github.com/88250/lute/render"
|
||||
"github.com/siyuan-note/filelock"
|
||||
"github.com/siyuan-note/logging"
|
||||
"github.com/siyuan-note/siyuan/kernel/sql"
|
||||
"github.com/siyuan-note/siyuan/kernel/util"
|
||||
)
|
||||
|
||||
|
|
@ -39,6 +38,8 @@ func AutoSpace(rootID string) (err error) {
|
|||
util.PushEndlessProgress(Conf.Language(116))
|
||||
defer util.ClearPushProgress(100)
|
||||
|
||||
WaitForWritingFiles()
|
||||
|
||||
generateFormatHistory(tree)
|
||||
luteEngine := NewLute()
|
||||
// 合并相邻的同类行级节点
|
||||
|
|
@ -76,7 +77,7 @@ func AutoSpace(rootID string) (err error) {
|
|||
if nil != err {
|
||||
return
|
||||
}
|
||||
sql.WaitForWritingDatabase()
|
||||
util.RandomSleep(500, 700)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue