test
This commit is contained in:
parent
8894b7b645
commit
477fad6086
6
mq.go
6
mq.go
@ -44,10 +44,10 @@ 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)
|
|
||||||
}
|
|
||||||
}()
|
}()
|
||||||
|
|
||||||
<-forever
|
<-forever
|
||||||
|
Loading…
Reference in New Issue
Block a user