[Cmii][ImageSync] - reformat agent-go - 2

This commit is contained in:
zeaslity
2024-03-29 15:37:06 +08:00
parent 77c689abd7
commit 1b88e5d871
6 changed files with 14 additions and 11 deletions

View File

@@ -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)
}
}