MCPcopy Create free account
hub / github.com/LockGit/gochat / Run

Method Run

task/task.go:21–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19}
20
21func (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}

Callers

nothing calls this directly

Calls 3

InitQueueRedisClientMethod · 0.95
InitConnectRpcClientMethod · 0.95
GoPushMethod · 0.95

Tested by

no test coverage detected