test
This commit is contained in:
parent
7a7e564029
commit
622a700178
13
workers.go
13
workers.go
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user