Browse Source

更新

three
huangjiajun 1 year ago
parent
commit
15c0615cd0
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      consume/zhios_acquisition_condition.go

+ 4
- 1
consume/zhios_acquisition_condition.go View File

@@ -26,7 +26,7 @@ func ZhiosAcquisitionCondition(queue md.MqQueue) {
//1、将自己绑定到交换机上
ch.Bind(queue.Name, queue.ExchangeName, queue.RoutKey)
//2、取出数据进行消费
ch.Qos(100)
ch.Qos(300)
delivery := ch.Consume(queue.Name, false)

var res amqp.Delivery
@@ -80,6 +80,9 @@ func handleZhiosAcquisition(msg []byte) error {
if eg == nil {
return nil
}
if canalMsg.Uid == "" {
return nil
}
userInfo, _ := db.UserFindByID(eg, canalMsg.Uid)
if userInfo == nil {
return nil


Loading…
Cancel
Save