Skip to content

Commit

Permalink
update: 调整请求间隔
Browse files Browse the repository at this point in the history
  • Loading branch information
hamster1963 committed Jan 20, 2024
1 parent c7c0e19 commit 10de2b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/boot/boot.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 10de2b0

Please sign in to comment.