Revert "test"

This reverts commit c3a7017ed3.
This commit is contained in:
shoopea 2019-06-28 15:54:29 +08:00
parent 15c1c11cf0
commit aadd432133

View File

@ -34,9 +34,9 @@ func MQGetMsgWorker(id int, msgs chan<- ChatWarsMessage) {
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 name #1 : %s.\n", s.Queue)
log.Printf("MQGetMsgWorker["+strconv.Itoa(id)+"] : Queue name : %s.\n", s.Queue)
q, err := s.MQChannel.QueueDeclare(
_, err := s.MQChannel.QueueDeclare(
s.Queue, // name
false, // durable
false, // delete when unused
@ -45,7 +45,6 @@ func MQGetMsgWorker(id int, msgs chan<- ChatWarsMessage) {
nil, // arguments
)
log.Printf("MQGetMsgWorker["+strconv.Itoa(id)+"] : Queue name #2 : %s.\n", q.Name)
/*
m, err := s.MQChannel.Consume(
q.Name, // queue