[ Cmii ] [ Operator ] - bug fix

This commit is contained in:
zeaslity
2024-04-12 14:36:22 +08:00
parent df57a8f712
commit a21b113340
3 changed files with 22 additions and 14 deletions

View File

@@ -196,7 +196,7 @@ func (r *RabbitQueue) Handle() chan bool {
deliveries := r.Read(true)
// 2024年4月9日
r.ConsumeOK.Swap(true)
r.ConsumeOK.Store(true)
foreverHandle := make(chan bool)
// 死循环处理Octopus Message
@@ -217,7 +217,7 @@ func (r *RabbitQueue) Handle() chan bool {
// 2024年4月9日
if !r.ConsumeOK.Load() {
log.InfoF("Rabbit Queue of [%s] [%s[ disconnect!", r.RabbitProp.ExchangeName, r.RabbitProp.QueueName)
log.InfoF("Rabbit Queue of [%s] [%s] disconnect!", r.RabbitProp.ExchangeName, r.RabbitProp.QueueName)
break
}
}