This commit is contained in:
shoopea 2019-06-28 14:19:10 +08:00
parent 002c547a50
commit 27825e2a44

20
mq.go
View File

@ -45,15 +45,17 @@ func (s MQSession) Open() error {
s.MQConnection.Close() s.MQConnection.Close()
return err return err
} }
s.MQDelivery, err = s.MQChannel.Consume( /*
s.MQQueue.Name, // queue s.MQDelivery, err = s.MQChannel.Consume(
"", // consumer s.MQQueue.Name, // queue
true, // auto-ack "", // consumer
false, // exclusive true, // auto-ack
false, // no-local false, // exclusive
false, // no-wait false, // no-local
nil, // args false, // no-wait
) nil, // args
)
*/
logOnError(err, "Open : Failed to register a consumer") logOnError(err, "Open : Failed to register a consumer")
if err != nil { if err != nil {
s.MQChannel.Close() s.MQChannel.Close()