test
This commit is contained in:
parent
6b7cb32bbc
commit
81347ee093
22
workers.go
22
workers.go
@ -363,16 +363,18 @@ func MQKeepAliveWorker() {
|
|||||||
time.Sleep(15 * time.Second)
|
time.Sleep(15 * time.Second)
|
||||||
err = s.Open()
|
err = s.Open()
|
||||||
}
|
}
|
||||||
m, err := s.MQChannel.Consume(
|
/*
|
||||||
s.MQQueue.Name, // queue
|
m, 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
|
||||||
for d := range m {
|
)
|
||||||
|
*/
|
||||||
|
for d := range s.MQDelivery {
|
||||||
log.Printf("MQKeepAliveWorker : Received a message: %s", string(d.Body))
|
log.Printf("MQKeepAliveWorker : Received a message: %s", string(d.Body))
|
||||||
x := MQKeepAlive{}
|
x := MQKeepAlive{}
|
||||||
err = json.Unmarshal(d.Body, &x)
|
err = json.Unmarshal(d.Body, &x)
|
||||||
|
Loading…
Reference in New Issue
Block a user