test
This commit is contained in:
parent
8894b7b645
commit
477fad6086
4
mq.go
4
mq.go
@ -44,8 +44,8 @@ func MQMainReceive() {
|
|||||||
for d := range msgs {
|
for d := range msgs {
|
||||||
log.Printf("MQMainReceive : Received a message: %s", d.Body)
|
log.Printf("MQMainReceive : Received a message: %s", d.Body)
|
||||||
if err = json.Unmarshal(d.Body, &m); err != nil {
|
if err = json.Unmarshal(d.Body, &m); err != nil {
|
||||||
failOnError(err, "MQMainReceive : Can't unmarshal")
|
logOnError(err, "MQMainReceive : Can't unmarshal")
|
||||||
}
|
} else {
|
||||||
putMsg(m)
|
putMsg(m)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
Loading…
Reference in New Issue
Block a user