From d7680317c3f17be8ca691ea98d08e03a9d504f0e Mon Sep 17 00:00:00 2001 From: coward Date: Mon, 17 Jun 2024 10:20:46 +0800 Subject: [PATCH] =?UTF-8?q?:art:=E6=9A=82=E6=97=B6=E5=B1=8F=E8=94=BD?= =?UTF-8?q?=E7=9B=91=E5=90=AC=E9=98=9F=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index c170718..72ba8cd 100644 --- a/main.go +++ b/main.go @@ -7,8 +7,8 @@ import ( "net/http" "time" "wireguard-dashboard/config" + "wireguard-dashboard/cron_task" "wireguard-dashboard/initialize" - "wireguard-dashboard/queues" "wireguard-dashboard/route" "wireguard-dashboard/script" ) @@ -18,8 +18,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() {