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.")
|
//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()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user