[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

@@ -96,9 +96,6 @@ func INIT(octopusAgentConfigFileName string, agentServerInfoConf string) chan bo
}
}
//<-initForeverHandle
//close(initFromServerQueue.ReceiveChan.InitRChan)
// 建立 运行时 RabbitMQ连接
runtimeConnectorQueue := buildAndStartBusinessRuntimeQueue(a_agent.AgentServerInfoCache.TopicName)
@@ -153,6 +150,7 @@ func buildAndStartBusinessRuntimeQueue(agentTopicName string) chan bool {
// cache it
rabbitmq.BusinessRuntimeQueue = octopusMsgQueue
rabbitmq.OctopusToServerQueue = octopusToServerQueue
return businessForeverChan
}
@@ -161,12 +159,9 @@ func buildAndStartBusinessRuntimeQueue(agentTopicName string) chan bool {
func activatedOctopusAgentModules() {
// Agent
err := P.Submit(func() {
_ = P.Submit(func() {
a_agent.Activate()
})
if err != nil {
return
}
// Executor
_ = P.Submit(func() {
a_executor.Activate()