|
|
@@ -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) |
|
|
|