typo
This commit is contained in:
parent
5a8c818876
commit
63cef6ee15
4
mq.go
4
mq.go
@ -51,8 +51,8 @@ func MQSendMsgWorker(id int, msgs <-chan ChatWarsMessage) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func MQReceiveMsgWorker(id int, cmd chan<- TDCommand) {
|
func MQReceiveMsgWorker(id int, cmd chan<- TGCommand) {
|
||||||
var c ChatWarsCommand
|
var c TGCommand
|
||||||
conn, err := amqp.Dial("amqp://" + cfg.Rabbit.User + ":" + cfg.Rabbit.Password + "@" + cfg.Rabbit.Host + "/" + cfg.Rabbit.ReceiveQueue)
|
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")
|
failOnError(err, "MQReceiveMsgWorker["+strconv.Itoa(id)+"] : Failed to connect to RabbitMQ")
|
||||||
defer conn.Close()
|
defer conn.Close()
|
||||||
|
Loading…
Reference in New Issue
Block a user