mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-23 00:36:10 +01:00
This commit is contained in:
parent
78ed38a33a
commit
df9122b664
16 changed files with 175 additions and 197 deletions
|
|
@ -400,13 +400,6 @@ func IndexBlockTree(tree *parse.Tree) {
|
|||
})
|
||||
}
|
||||
|
||||
func AutoFlushBlockTree() {
|
||||
for {
|
||||
SaveBlockTree(false)
|
||||
time.Sleep(1 * time.Second)
|
||||
}
|
||||
}
|
||||
|
||||
func InitBlockTree(force bool) {
|
||||
start := time.Now()
|
||||
|
||||
|
|
@ -483,6 +476,10 @@ func InitBlockTree(force bool) {
|
|||
return
|
||||
}
|
||||
|
||||
func SaveBlockTreeJob() {
|
||||
SaveBlockTree(false)
|
||||
}
|
||||
|
||||
func SaveBlockTree(force bool) {
|
||||
start := time.Now()
|
||||
os.MkdirAll(util.BlockTreePath, 0755)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue