From 63cef6ee1558c2f3a627fadeed170b8799164dbe Mon Sep 17 00:00:00 2001 From: shoopea Date: Thu, 16 May 2019 10:06:27 +0800 Subject: [PATCH] typo --- mq.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mq.go b/mq.go index 3335999..8e0bc93 100644 --- a/mq.go +++ b/mq.go @@ -51,8 +51,8 @@ func MQSendMsgWorker(id int, msgs <-chan ChatWarsMessage) { } -func MQReceiveMsgWorker(id int, cmd chan<- TDCommand) { - var c ChatWarsCommand +func MQReceiveMsgWorker(id int, cmd chan<- TGCommand) { + var c TGCommand conn, err := amqp.Dial("amqp://" + cfg.Rabbit.User + ":" + cfg.Rabbit.Password + "@" + cfg.Rabbit.Host + "/" + cfg.Rabbit.ReceiveQueue) failOnError(err, "MQReceiveMsgWorker["+strconv.Itoa(id)+"] : Failed to connect to RabbitMQ") defer conn.Close()