From 8740e47a01be78db45ef229355a84f0dae2f0e18 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Sun, 15 Jan 2023 10:59:01 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E8=B0=83=E6=95=B4=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E4=BB=93=E5=BA=93=E7=B4=A2=E5=BC=95=E6=8E=A8=E9=80=81=E9=97=B4?= =?UTF-8?q?=E9=9A=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/repository.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/model/repository.go b/kernel/model/repository.go index eb5abe53c..dc1170b30 100644 --- a/kernel/model/repository.go +++ b/kernel/model/repository.go @@ -1203,7 +1203,7 @@ func subscribeEvents() { indexUpsertFileCount := 0 eventbus.Subscribe(eventbus.EvtIndexUpsertFile, func(context map[string]interface{}, path string) { msg := fmt.Sprintf(Conf.Language(160), filepath.Base(path)) - if 0 == indexUpsertFileCount%128 { + if 0 == indexUpsertFileCount%64 { util.SetBootDetails(msg) util.ContextPushMsg(context, msg) } @@ -1235,7 +1235,7 @@ func subscribeEvents() { eventbus.Subscribe(eventbus.EvtCheckoutUpsertFile, func(context map[string]interface{}, path string) { msg := fmt.Sprintf(Conf.Language(162), filepath.Base(path)) util.IncBootProgress(bootProgressPart, msg) - if 0 == coUpsertFileCount%128 { + if 0 == coUpsertFileCount%64 { util.ContextPushMsg(context, msg) } coUpsertFileCount++