parent
75cc1df4d1
commit
af020e8452
@ -363,7 +363,6 @@ func MQKeepAliveWorker() {
|
|||||||
time.Sleep(15 * time.Second)
|
time.Sleep(15 * time.Second)
|
||||||
err = s.Open()
|
err = s.Open()
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
m, err := s.MQChannel.Consume(
|
m, err := s.MQChannel.Consume(
|
||||||
s.MQQueue.Name, // queue
|
s.MQQueue.Name, // queue
|
||||||
"", // consumer
|
"", // consumer
|
||||||
@ -373,8 +372,7 @@ func MQKeepAliveWorker() {
|
|||||||
false, // no-wait
|
false, // no-wait
|
||||||
nil, // args
|
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