parent
2eb211d876
commit
866ec809c6
20
mq.go
20
mq.go
@ -45,17 +45,15 @@ 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
|
true, // auto-ack
|
||||||
true, // auto-ack
|
false, // exclusive
|
||||||
false, // exclusive
|
false, // no-local
|
||||||
false, // no-local
|
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