From 69fbc865c479a985433867058fe3f45716f0fea4 Mon Sep 17 00:00:00 2001 From: dengbiao Date: Fri, 6 Sep 2024 17:06:51 +0800 Subject: [PATCH] 1 --- app/task/init.go | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/app/task/init.go b/app/task/init.go index 5546190..67f0f4b 100644 --- a/app/task/init.go +++ b/app/task/init.go @@ -14,15 +14,14 @@ import ( ) var ( - timer *cron.Cron - jobs = map[string]func(*xorm.Engine){} - baseEntryId cron.EntryID - entryIds []cron.EntryID - taskCfgList *[]model.SysCfg - ch = make(chan int, 30) - workerNum = 15 // 智盟跟单并发数量 - otherCh = make(chan int, 30) - otherWorkerNum = 18 // 淘宝, 苏宁, 考拉并发量 + timer *cron.Cron + jobs = map[string]func(*xorm.Engine){} + baseEntryId cron.EntryID + entryIds []cron.EntryID + taskCfgList *[]model.SysCfg + ch = make(chan int, 30) + workerNum = 15 // 智盟跟单并发数量 + otherCh = make(chan int, 30) ) func Init() {