mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
This commit is contained in:
parent
78ed38a33a
commit
df9122b664
16 changed files with 175 additions and 197 deletions
|
|
@ -18,17 +18,16 @@ package mobile
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/siyuan-note/siyuan/kernel/task"
|
||||
"github.com/siyuan-note/siyuan/kernel/cache"
|
||||
"github.com/siyuan-note/siyuan/kernel/job"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/siyuan-note/siyuan/kernel/cache"
|
||||
"github.com/siyuan-note/siyuan/kernel/model"
|
||||
"github.com/siyuan-note/siyuan/kernel/server"
|
||||
"github.com/siyuan-note/siyuan/kernel/sql"
|
||||
"github.com/siyuan-note/siyuan/kernel/treenode"
|
||||
"github.com/siyuan-note/siyuan/kernel/util"
|
||||
_ "golang.org/x/mobile/bind"
|
||||
)
|
||||
|
|
@ -57,23 +56,12 @@ func StartKernel(container, appDir, workspaceBaseDir, timezoneID, localIPs, lang
|
|||
model.LoadFlashcards()
|
||||
model.LoadAssetsTexts()
|
||||
|
||||
go task.Loop()
|
||||
go task.StatusLoop()
|
||||
|
||||
go model.AutoGenerateDocHistory()
|
||||
go model.AutoSync()
|
||||
go model.AutoStat()
|
||||
util.SetBooted()
|
||||
util.PushClearAllMsg()
|
||||
go model.AutoRefreshCheck()
|
||||
go model.AutoFlushTx()
|
||||
go sql.AutoFlushTx()
|
||||
go treenode.AutoFlushBlockTree()
|
||||
|
||||
job.StartCron()
|
||||
go model.AutoGenerateDocHistory()
|
||||
go cache.LoadAssets()
|
||||
go model.AutoFixIndex()
|
||||
go model.AutoIndexEmbedBlock()
|
||||
go model.AutoOCRAssets()
|
||||
go model.AutoFlushAssetsTexts()
|
||||
}()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue