From 00e66853203f364b46e468a34c1238c23b70551b Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Fri, 26 Apr 2024 15:42:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- consume/canal_user_virtual_coin_flow_consume.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/consume/canal_user_virtual_coin_flow_consume.go b/consume/canal_user_virtual_coin_flow_consume.go index 6476056..f091ce9 100644 --- a/consume/canal_user_virtual_coin_flow_consume.go +++ b/consume/canal_user_virtual_coin_flow_consume.go @@ -14,7 +14,6 @@ import ( ) func CanalOneOrengeUserVirtualCoinFlowConsume(queue md.MqQueue) { - fmt.Println(">>>>>>>>>>>>CanalUserVirtualCoinFlowConsume>>>>>>>>>>>>") ch, err := rabbit.Cfg.Pool.GetChannel() if err != nil { logx.Error(err) @@ -24,7 +23,7 @@ func CanalOneOrengeUserVirtualCoinFlowConsume(queue md.MqQueue) { //1、将自己绑定到交换机上 ch.Bind(queue.Name, queue.ExchangeName, queue.RoutKey) //2、取出数据进行消费 - ch.Qos(1) + ch.Qos(1000) delivery := ch.Consume(queue.Name, false) var res amqp.Delivery @@ -33,10 +32,10 @@ func CanalOneOrengeUserVirtualCoinFlowConsume(queue md.MqQueue) { res, ok = <-delivery if ok == true { //fmt.Println(string(res.Body)) - fmt.Println(">>>>>>>>>>>>>>>>CanalUserVirtualCoinFlowConsume<<<<<<<<<<<<<<<<<<<<<<<<<") + fmt.Println(">>>>>>>>>>>>>>>>CanalOneOrengeUserVirtualCoinFlowConsume<<<<<<<<<<<<<<<<<<<<<<<<<") err = handleCanalOneOrengeUserVirtualCoinFlow(res.Body) if err != nil { - fmt.Println("handleCanalUserVirtualCoinFlow_ERR:::::", err.Error()) + fmt.Println("CanalOneOrengeUserVirtualCoinFlowConsume_ERR:::::", err.Error()) } //_ = res.Reject(false) err = res.Ack(true)