From 10de2b01a77858544c91870cb7c27a43795a940f Mon Sep 17 00:00:00 2001 From: hamster1963 <1410514192@qq.com> Date: Sat, 20 Jan 2024 11:38:37 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E8=B0=83=E6=95=B4=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E9=97=B4=E9=9A=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/boot/boot.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/boot/boot.go b/internal/boot/boot.go index e596e3f..f6f26d6 100644 --- a/internal/boot/boot.go +++ b/internal/boot/boot.go @@ -76,7 +76,7 @@ func bootMethod(initData *g_structs.InitData) (err error) { var ctx = context.TODO() glog.Debug(ctx, "开始初始化定时任务管理器") - _, err = gcron.AddSingleton(ctx, "@every 30s", func(ctx context.Context) { + _, err = gcron.AddSingleton(ctx, "@every 120s", func(ctx context.Context) { err := cron_utils.CronManage.GetConfigAndStart(ctx, initData) if err != nil { glog.Error(ctx, "初始化定时任务管理器服务失败: ", err) @@ -90,7 +90,7 @@ func bootMethod(initData *g_structs.InitData) (err error) { glog.Debug(ctx, "初始化定时任务管理器服务成功") glog.Debug(ctx, "开始初始化自动更新服务") - _, err = gcron.AddSingleton(ctx, "@every 20s", func(ctx context.Context) { + _, err = gcron.AddSingleton(ctx, "@every 120s", func(ctx context.Context) { err := update_utils.AutoUpdate.UpdateCore(ctx, initData) if err != nil { glog.Error(ctx, "自动更新服务失败: ", err)