diff --git a/kernel/model/repository.go b/kernel/model/repository.go index 35537b893..f4e2b343a 100644 --- a/kernel/model/repository.go +++ b/kernel/model/repository.go @@ -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) {