plugins/queue/rabbitmq_amqplib.js
Function init_amqp_connection
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.init_amqp_connection = function () {
const cfg = this.config.get("rabbitmq.ini").rabbitmq;
const protocol = cfg.protocol || "amqp";
const host = cfg.host || "127.0.0.1";