Revert "test"

This reverts commit 27825e2a44.
This commit is contained in:
shoopea 2019-06-28 15:56:25 +08:00
parent 2eb211d876
commit 866ec809c6

20
mq.go
View File

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