This commit is contained in:
shoopea 2019-06-28 16:19:26 +08:00
parent 6b320ff0ee
commit 4a0618dcf5

View File

@ -42,7 +42,7 @@ func MQGetMsgWorker(id int, msgs chan<- ChatWarsMessage) {
c.Connection.Close()
time.Sleep(15 * time.Second)
} else {
m, err := ch.Consume(
m, err := c.Channel.Consume(
q.Name, // queue
"", // consumer
true, // auto-ack