[agent-go] fix-bugs

This commit is contained in:
zeaslity
2023-03-30 16:10:34 +08:00
parent d24a338e80
commit 61481e7543
6 changed files with 27 additions and 6 deletions

View File

@@ -140,6 +140,10 @@ func handleInitMsgFromServer(initFromServerQueue *rabbitmq.RabbitQueue, initToSe
// 不是自身的 注册回复信息 -- 拒绝
log.Warn(fmt.Sprintf("OctopusMessage INIT from server not this agent ! => %v, ==>%s", initOctopusMsg, delivery.Body))
delivery.Nack(false, true)
// 需要休眠等待不再获取相应的信息
time.Sleep(5 * time.Second)
}
}