This commit is contained in:
shoopea 2019-06-28 15:20:17 +08:00
parent f008d597e4
commit 80b4027776

View File

@ -33,7 +33,8 @@ func MQGetMsgWorker(id int, msgs chan<- ChatWarsMessage) {
}
//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)+"] : Queue address : %p.\n", &s.MQQueue)
log.Printf("MQGetMsgWorker["+strconv.Itoa(id)+"] : Connection address : %p.\n", &s.MQConnection)
log.Printf("MQGetMsgWorker["+strconv.Itoa(id)+"] : Channel address : %p.\n", &s.MQChannel)
log.Printf("MQGetMsgWorker["+strconv.Itoa(id)+"] : Queue name : %s.\n", s.Queue)
q, err := s.MQChannel.QueueDeclare(
s.Queue, // name
@ -88,6 +89,8 @@ func MQKeepAliveWorker() {
}
//log.Printf("MQKeepAliveWorker : Connected to RabbitMQ")
log.Printf("MQKeepAliveWorker : Session address : %p.\n", &s)
log.Printf("MQKeepAliveWorker : Connection address : %p.\n", &s.MQConnection)
log.Printf("MQKeepAliveWorker : Channel address : %p.\n", &s.MQChannel)
q, err := s.MQChannel.QueueDeclare(
s.Queue, // name
false, // durable