dengbiao 2 weeks ago
parent
commit
08258c7f22
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      consume/temporary_egg_energy_deal_user_ecpm.go

+ 2
- 2
consume/temporary_egg_energy_deal_user_ecpm.go View File

@@ -23,7 +23,7 @@ import (
)

func TemporaryEggEnergyDealUserECPMConsume(queue md.MqQueue) {
fmt.Println(">>>>>>>>>>>>EggEnergyDealUserECPMConsume>>>>>>>>>>>>")
fmt.Println(">>>>>>>>>>>>TemporaryEggEnergyDealUserECPMConsume>>>>>>>>>>>>")
ch, err := rabbit.Cfg.Pool.GetChannel()
if err != nil {
logx.Error(err)
@@ -33,7 +33,7 @@ func TemporaryEggEnergyDealUserECPMConsume(queue md.MqQueue) {
//1、将自己绑定到交换机上
ch.Bind(queue.Name, queue.ExchangeName, queue.RoutKey)
//2、取出数据进行消费
ch.Qos(1)
ch.Qos(200)
delivery := ch.Consume(queue.Name, false)

egg_system_rules.Init(cfg.RedisAddr)


Loading…
Cancel
Save