From c2a9618f2719007b3a0f12cfa1854d2b4a316078 Mon Sep 17 00:00:00 2001 From: coward Date: Fri, 14 Jun 2024 10:25:53 +0800 Subject: [PATCH] =?UTF-8?q?:art:=E6=81=A2=E5=A4=8D=E5=AE=9A=E6=97=B6?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index c170718..a283a8a 100644 --- a/main.go +++ b/main.go @@ -7,6 +7,7 @@ import ( "net/http" "time" "wireguard-dashboard/config" + "wireguard-dashboard/cron_task" "wireguard-dashboard/initialize" "wireguard-dashboard/queues" "wireguard-dashboard/route" @@ -18,8 +19,8 @@ func init() { if err := script.NewScript().Do(); err != nil { log.Errorf("执行脚本失败: %v", err.Error()) } - go queues.StartConsumer() // 启动队列 - //go cron_task.StartCronTask() // 启动定时任务 + go queues.StartConsumer() // 启动队列 + go cron_task.StartCronTask() // 启动定时任务 } func main() {