mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Data sync supports the multi-kernel online perception https://github.com/siyuan-note/siyuan/issues/8518
This commit is contained in:
parent
9fc2c5ddf8
commit
b8a400c272
2 changed files with 2 additions and 8 deletions
|
|
@ -209,13 +209,7 @@ func setSyncMode(c *gin.Context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
mode := int(arg["mode"].(float64))
|
mode := int(arg["mode"].(float64))
|
||||||
err := model.SetSyncMode(mode)
|
model.SetSyncMode(mode)
|
||||||
if nil != err {
|
|
||||||
ret.Code = -1
|
|
||||||
ret.Msg = err.Error()
|
|
||||||
ret.Data = map[string]interface{}{"closeTimeout": 5000}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func setSyncProvider(c *gin.Context) {
|
func setSyncProvider(c *gin.Context) {
|
||||||
|
|
|
||||||
|
|
@ -351,7 +351,7 @@ func SetSyncPerception(b bool) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func SetSyncMode(mode int) (err error) {
|
func SetSyncMode(mode int) {
|
||||||
Conf.Sync.Mode = mode
|
Conf.Sync.Mode = mode
|
||||||
Conf.Save()
|
Conf.Save()
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue