🎨 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) {
|
||||
msg := fmt.Sprintf(Conf.Language(160), count, total)
|
||||
util.SetBootDetails(msg)
|
||||
util.ContextPushMsg(context, msg)
|
||||
if 0 == count%32 {
|
||||
util.SetBootDetails(msg)
|
||||
util.ContextPushMsg(context, msg)
|
||||
}
|
||||
})
|
||||
|
||||
eventbus.Subscribe(eventbus.EvtCheckoutBeforeWalkData, func(context map[string]interface{}, path string) {
|
||||
|
@ -1756,6 +1758,9 @@ func subscribeRepoEvents() {
|
|||
util.SetBootDetails(msg)
|
||||
util.ContextPushMsg(context, msg)
|
||||
})
|
||||
eventbus.Subscribe(eventbus.EvtCloudCorrupted, func() {
|
||||
util.PushErrMsg(Conf.language(220), 30000)
|
||||
})
|
||||
}
|
||||
|
||||
func buildCloudConf() (ret *cloud.Conf, err error) {
|
||||
|
|
Loading…
Add table
Reference in a new issue