
var defaultConfig = {
  amqpUrl: process.env.AMQP_URL || 'amqp://localhost',
  prefetch: process.env.AMQP_PREFETCH || 1,
  isRequeueEnabled: true
};

module.exports = function(config) {
  require('./lib/boot/logger');

  return {
    producer: require('./lib/producer')(config || defaultConfig),
    consumer: require('./lib/consumer')(config || defaultConfig)
  };
};


var defaultConfig = {
  amqpUrl: process.env.BUNNYMQ_URL || 'amqp://localhost',
  prefetch: process.env.BUNNYMQ_PREFETCH || 1,
  isRequeueEnabled: true
};

module.exports = function(config) {
  require('./lib/boot/logger');

  return {
    producer: require('./lib/producer')(config || defaultConfig),
    consumer: require('./lib/consumer')(config || defaultConfig)
  };
};

Rename env var to BUNNYMQ_URL instead of AMQP_URL
Rename env var to BUNNYMQ_URL instead of AMQP_URL
