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.")
var x ChatWarsMessage
for true {
c := MQClient{
User: cfg.Rabbit.User,
Password: cfg.Rabbit.Password,
Host: cfg.Rabbit.Host,
Path: cfg.Rabbit.Path,
SSL: false,
}
c := new(MQClient)
c.User = cfg.Rabbit.User
c.Password = cfg.Rabbit.Password
c.Host = cfg.Rabbit.Host
c.Path = cfg.Rabbit.Path
c.SSL = false
err := c.Open()