From 69846cdf98e8c9fbd6ba1d24fff40b1503136565 Mon Sep 17 00:00:00 2001 From: Rogee Date: Sat, 15 Mar 2025 21:34:10 +0800 Subject: [PATCH] feat: update --- templates/project/app/jobs/demo_cron.go.tpl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/templates/project/app/jobs/demo_cron.go.tpl b/templates/project/app/jobs/demo_cron.go.tpl index 401aeb3..866a603 100644 --- a/templates/project/app/jobs/demo_cron.go.tpl +++ b/templates/project/app/jobs/demo_cron.go.tpl @@ -3,7 +3,6 @@ package jobs import ( "time" - "github.com/riverqueue/river" . "github.com/riverqueue/river" "github.com/sirupsen/logrus" _ "go.ipao.vip/atom" @@ -26,7 +25,7 @@ func (CronJob) Args() []contracts.CronJobArg { }, Kind: "cron_job", - PeriodicInterval: river.PeriodicInterval(time.Second * 10), + PeriodicInterval: PeriodicInterval(time.Second * 10), RunOnStart: false, }, }