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