This commit is contained in:
shoopea 2019-05-04 11:56:42 +08:00
parent 098f729a95
commit 5ea01ae0b3

1
mq.go
View File

@ -9,7 +9,6 @@ import (
) )
func MQSendMsgWorker(id int, msgs <-chan ChatWarsMessage) { func MQSendMsgWorker(id int, msgs <-chan ChatWarsMessage) {
var x ChatWarsMessage
conn, err := amqp.Dial("amqp://" + cfg.Rabbit.User + ":" + cfg.Rabbit.Password + "@" + cfg.Rabbit.Host + "/" + cfg.Rabbit.Queue) conn, err := amqp.Dial("amqp://" + cfg.Rabbit.User + ":" + cfg.Rabbit.Password + "@" + cfg.Rabbit.Host + "/" + cfg.Rabbit.Queue)
failOnError(err, "MQSendMsgWorker["+strconv.Itoa(id)+"] : Failed to connect to RabbitMQ") failOnError(err, "MQSendMsgWorker["+strconv.Itoa(id)+"] : Failed to connect to RabbitMQ")
defer conn.Close() defer conn.Close()