()
| 19 | } |
| 20 | |
| 21 | func (task *Task) Run() { |
| 22 | //read config |
| 23 | taskConfig := config.Conf.Task |
| 24 | runtime.GOMAXPROCS(taskConfig.TaskBase.CpuNum) |
| 25 | //read from redis queue |
| 26 | if err := task.InitQueueRedisClient(); err != nil { |
| 27 | logrus.Panicf("task init publishRedisClient fail,err:%s", err.Error()) |
| 28 | } |
| 29 | //rpc call connect layer send msg |
| 30 | if err := task.InitConnectRpcClient(); err != nil { |
| 31 | logrus.Panicf("task init InitConnectRpcClient fail,err:%s", err.Error()) |
| 32 | } |
| 33 | //GoPush |
| 34 | task.GoPush() |
| 35 | } |
nothing calls this directly
no test coverage detected