This commit is contained in:
shoopea 2019-06-28 15:30:09 +08:00
parent c3a7017ed3
commit 2e90cdcfea

View File

@ -35,8 +35,9 @@ func MQGetMsgWorker(id int, msgs chan<- ChatWarsMessage) {
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)
ch := s.MQChannel
q, err := s.MQChannel.QueueDeclare(
q, err := ch.QueueDeclare(
s.Queue, // name
false, // durable
false, // delete when unused