🎨恢复定时任务
All checks were successful
continuous-integration/drone/tag Build is passing

This commit is contained in:
coward 2024-06-14 10:25:53 +08:00
parent 8dab976cba
commit c2a9618f27

View File

@ -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() {