Revert "test"

This reverts commit 80b4027776.
This commit is contained in:
shoopea 2019-06-28 15:54:57 +08:00
parent afa8b181ae
commit 81c7b10291

View File

@ -33,8 +33,7 @@ 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)+"] : 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 address : %p.\n", &s.MQQueue)
log.Printf("MQGetMsgWorker["+strconv.Itoa(id)+"] : Queue name : %s.\n", s.Queue)
q, err := s.MQChannel.QueueDeclare(
s.Queue, // name
@ -89,8 +88,6 @@ 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