mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 Improve kernel stability by eliminating some data races https://github.com/siyuan-note/siyuan/issues/9842
This commit is contained in:
parent
b6a4566670
commit
d143c30430
1 changed files with 7 additions and 2 deletions
|
|
@ -1605,8 +1605,10 @@ func subscribeRepoEvents() {
|
||||||
})
|
})
|
||||||
eventbus.Subscribe(eventbus.EvtIndexUpsertFile, func(context map[string]interface{}, count int, total int) {
|
eventbus.Subscribe(eventbus.EvtIndexUpsertFile, func(context map[string]interface{}, count int, total int) {
|
||||||
msg := fmt.Sprintf(Conf.Language(160), count, total)
|
msg := fmt.Sprintf(Conf.Language(160), count, total)
|
||||||
|
if 0 == count%32 {
|
||||||
util.SetBootDetails(msg)
|
util.SetBootDetails(msg)
|
||||||
util.ContextPushMsg(context, msg)
|
util.ContextPushMsg(context, msg)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
eventbus.Subscribe(eventbus.EvtCheckoutBeforeWalkData, func(context map[string]interface{}, path string) {
|
eventbus.Subscribe(eventbus.EvtCheckoutBeforeWalkData, func(context map[string]interface{}, path string) {
|
||||||
|
|
@ -1756,6 +1758,9 @@ func subscribeRepoEvents() {
|
||||||
util.SetBootDetails(msg)
|
util.SetBootDetails(msg)
|
||||||
util.ContextPushMsg(context, msg)
|
util.ContextPushMsg(context, msg)
|
||||||
})
|
})
|
||||||
|
eventbus.Subscribe(eventbus.EvtCloudCorrupted, func() {
|
||||||
|
util.PushErrMsg(Conf.language(220), 30000)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func buildCloudConf() (ret *cloud.Conf, err error) {
|
func buildCloudConf() (ret *cloud.Conf, err error) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue