From 1ca4769504bab2686acd10db0dc4f00cf116776d Mon Sep 17 00:00:00 2001 From: shoopea Date: Sat, 29 Jun 2019 15:46:30 +0800 Subject: [PATCH] test --- workers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workers.go b/workers.go index 2cf0799..c4ce4ab 100644 --- a/workers.go +++ b/workers.go @@ -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 }