[ Cmii ] [ Octopus ] - hot fix manual shut down init queue

This commit is contained in:
zeaslity
2024-04-09 10:10:51 +08:00
parent af98a0dcfc
commit bcb46ec8aa
4 changed files with 18 additions and 6 deletions

View File

@@ -294,8 +294,8 @@ func handleInitMsgFromServer(initFromServerMsg *rabbitmq.OctopusMessage, initToS
// shutdownRegisterQueueConnection 关闭初始化连接的两个队列
func shutdownRegisterQueueConnection(initFromServerQueue *rabbitmq.RabbitQueue, initToServerQueue *rabbitmq.RabbitQueue) {
_ = initFromServerQueue.Close()
_ = initToServerQueue.Close()
initFromServerQueue.ConsumeOK = false
initToServerQueue.ConsumeOK = false
log.InfoF("Octopus Agent Init Queue has disconnected!")
}