Commit 3dcab49b authored by Sonja Happ's avatar Sonja Happ
Browse files

AMQP: remove defer statement

parent bfcc8983
......@@ -73,8 +73,6 @@ func ConnectAMQP(uri string) error {
return fmt.Errorf("AMQP: failed to connect to RabbitMQ broker %v, error: %v", uri, err)
}
defer client.connection.Close()
// create channel
client.channel, err = client.connection.Channel()
if err != 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