[Cmii][ImageSync] - reformat agent-go - 2
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package a_agent
|
||||
|
||||
import (
|
||||
"time"
|
||||
"wdd.io/agent-common/logger"
|
||||
"wdd.io/agent-go/rabbitmq"
|
||||
)
|
||||
@@ -11,7 +12,7 @@ func Activate() {
|
||||
log.Info("Module [ AGENT ] activated !")
|
||||
|
||||
for {
|
||||
if octopusMessage, ok := <-rabbitmq.BusinessRuntimeQueue.ReceiveChan.ExecutorRChan; ok {
|
||||
if octopusMessage, ok := <-rabbitmq.BusinessRuntimeQueue.ReceiveChan.AgentRChan; ok {
|
||||
// 处理数
|
||||
|
||||
// 输出日志
|
||||
@@ -21,5 +22,6 @@ func Activate() {
|
||||
log.ErrorF("business queue [ AGENT ] receive chan has closed !")
|
||||
break
|
||||
}
|
||||
time.Sleep(time.Second * 20)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user