This commit is contained in:
shoopea 2019-06-28 17:19:17 +08:00
parent 049e7868a8
commit ef03a4dad4

View File

@ -47,6 +47,7 @@ func MQGetMsgWorker(id int, msgs chan<- ChatWarsMessage) {
log.Printf("MQGetMsgWorker["+strconv.Itoa(id)+"] : Address of struct : %p\n", &c)
err := OpenMQ(&c)
logOnError(err, "MQGetMsgWorker["+strconv.Itoa(id)+"] : Cannot open MQ connection")
if err != nil {
q, err := c.Channel.QueueDeclare(
@ -92,6 +93,7 @@ func MQGetMsgWorker(id int, msgs chan<- ChatWarsMessage) {
}
}
}
log.Printf("MQGetMsgWorker[" + strconv.Itoa(id) + "] : Closing.")