This commit is contained in:
shoopea 2019-06-29 15:46:30 +08:00
parent f7b085a217
commit 1ca4769504

View File

@ -28,7 +28,7 @@ func MQGetMsgWorker(id int, msgs chan<- ChatWarsMessage) {
c.Connection, err = amqp.Dial("amqp://" + c.User + ":" + c.Password + "@" + c.Host + "/" + c.Path)
logOnError(err, "MQGetMsgWorker["+strconv.Itoa(id)+"] : Cannot open MQ connection")
if err != nil {
c.Connection.Close()
//c.Connection.Close()
time.Sleep(15 * time.Second)
continue
}