Revert "test"

This reverts commit 51102e96d3.
This commit is contained in:
shoopea 2019-06-28 15:54:39 +08:00
parent 2a5ea917cb
commit ff8aa3b34d

View File

@ -14,6 +14,7 @@ import (
func MQGetMsgWorker(id int, msgs chan<- ChatWarsMessage) {
//log.Printf("MQGetMsgWorker[" + strconv.Itoa(id) + "] : Starting.")
var x ChatWarsMessage
s := MQSession{
User: cfg.Rabbit.User,
Password: cfg.Rabbit.Password,
@ -54,7 +55,6 @@ func MQGetMsgWorker(id int, msgs chan<- ChatWarsMessage) {
false, // no-wait
nil, // args
)
var x ChatWarsMessage
for d := range m {
log.Printf("MQGetMsgWorker["+strconv.Itoa(id)+"] : Received a message: %s", string(d.Body))
err = json.Unmarshal(d.Body, &x)