This commit is contained in:
shoopea 2019-06-28 14:41:11 +08:00
parent 6b7cb32bbc
commit 81347ee093

View File

@ -363,6 +363,7 @@ func MQKeepAliveWorker() {
time.Sleep(15 * time.Second)
err = s.Open()
}
/*
m, err := s.MQChannel.Consume(
s.MQQueue.Name, // queue
"", // consumer
@ -372,7 +373,8 @@ func MQKeepAliveWorker() {
false, // no-wait
nil, // args
)
for d := range m {
*/
for d := range s.MQDelivery {
log.Printf("MQKeepAliveWorker : Received a message: %s", string(d.Body))
x := MQKeepAlive{}
err = json.Unmarshal(d.Body, &x)