This commit is contained in:
shoopea 2019-06-28 14:50:36 +08:00
parent 6f95de1b78
commit 3d3fc4e4fc

View File

@ -33,9 +33,10 @@ func MQGetMsgWorker(id int, msgs chan<- ChatWarsMessage) {
} }
//log.Printf("MQGetMsgWorker[" + strconv.Itoa(id) + "] : Connected to RabbitMQ") //log.Printf("MQGetMsgWorker[" + strconv.Itoa(id) + "] : Connected to RabbitMQ")
log.Printf("MQGetMsgWorker["+strconv.Itoa(id)+"] : Session address : %p.\n", &s) log.Printf("MQGetMsgWorker["+strconv.Itoa(id)+"] : Session address : %p.\n", &s)
log.Printf("MQGetMsgWorker["+strconv.Itoa(id)+"] : Queue address : %p.\n", &s.MQQueue)
/* /*
m, err := s.MQChannel.Consume( m, err := s.MQChannel.Consume(
s.Queue, // queue s.MQQueue.Name, // queue
"", // consumer "", // consumer
true, // auto-ack true, // auto-ack
false, // exclusive false, // exclusive