test
This commit is contained in:
parent
002c547a50
commit
27825e2a44
2
mq.go
2
mq.go
@ -45,6 +45,7 @@ func (s MQSession) Open() error {
|
|||||||
s.MQConnection.Close()
|
s.MQConnection.Close()
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
s.MQDelivery, err = s.MQChannel.Consume(
|
s.MQDelivery, err = s.MQChannel.Consume(
|
||||||
s.MQQueue.Name, // queue
|
s.MQQueue.Name, // queue
|
||||||
"", // consumer
|
"", // consumer
|
||||||
@ -54,6 +55,7 @@ func (s MQSession) Open() error {
|
|||||||
false, // no-wait
|
false, // no-wait
|
||||||
nil, // args
|
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()
|
||||||
|
Loading…
Reference in New Issue
Block a user