Revert "test"

This reverts commit 7f3202f35f.
This commit is contained in:
shoopea 2019-06-28 16:28:04 +08:00
parent 7f3202f35f
commit 7a7e564029
2 changed files with 2 additions and 2 deletions

2
mq.go
View File

@ -4,7 +4,7 @@ import (
"github.com/streadway/amqp"
)
func Open(c *MQClient) error {
func (c *MQClient) Open() error {
var err error
c.Connection, err = amqp.Dial("amqp://" + c.User + ":" + c.Password + "@" + c.Host + "/" + c.Path)

View File

@ -25,7 +25,7 @@ func MQGetMsgWorker(id int, msgs chan<- ChatWarsMessage) {
SSL: false,
}
err := Open(c)
err := c.Open()
if err != nil {
q, err := c.Channel.QueueDeclare(