parent
2a5ea917cb
commit
ff8aa3b34d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user