Commit 7b1dc5c8 by Li Feifei

test

parent aa052070
Pipeline #13604 passed with stages
in 27 seconds
......@@ -30,14 +30,13 @@ func (r *RabbitMQ) mqConnect() error {
"test-rmq.offcncloud.com/",
5672)
if r.connection == nil {
if r.connection, err = amqp.DialConfig(RabbitUrl, amqp.Config{Vhost: "v.ofc.office"}); err != nil {
beeLogger.Log.Errorf("RabbitMQ Server Connect Fail: %s", err)
return err
}
}
if r.connection == nil {
c, err := r.connection.Channel()
if err != nil {
beeLogger.Log.Errorf("Channel connet fail: %s", err)
......@@ -45,7 +44,7 @@ func (r *RabbitMQ) mqConnect() error {
}
r.channel = c
beeLogger.Log.Success("RabbitMQ Server is running...")
}
return nil
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment