This commit is contained in:
shoopea 2019-06-28 16:29:24 +08:00
parent 7a7e564029
commit 622a700178

View File

@ -17,13 +17,12 @@ func MQGetMsgWorker(id int, msgs chan<- ChatWarsMessage) {
//log.Printf("MQGetMsgWorker[" + strconv.Itoa(id) + "] : Starting.") //log.Printf("MQGetMsgWorker[" + strconv.Itoa(id) + "] : Starting.")
var x ChatWarsMessage var x ChatWarsMessage
for true { for true {
c := MQClient{ c := new(MQClient)
User: cfg.Rabbit.User, c.User = cfg.Rabbit.User
Password: cfg.Rabbit.Password, c.Password = cfg.Rabbit.Password
Host: cfg.Rabbit.Host, c.Host = cfg.Rabbit.Host
Path: cfg.Rabbit.Path, c.Path = cfg.Rabbit.Path
SSL: false, c.SSL = false
}
err := c.Open() err := c.Open()