testtest
This commit is contained in:
parent
6545c2d1e9
commit
098f729a95
3
mq.go
3
mq.go
@ -3,11 +3,12 @@ package main
|
||||
import (
|
||||
"encoding/json"
|
||||
"log"
|
||||
"strconv"
|
||||
|
||||
"github.com/streadway/amqp"
|
||||
)
|
||||
|
||||
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)
|
||||
failOnError(err, "MQSendMsgWorker["+strconv.Itoa(id)+"] : Failed to connect to RabbitMQ")
|
||||
|
Loading…
Reference in New Issue
Block a user