module.exports = function(config) {
  return {
    producer: require('./lib/producer')(config || {}),
    consumer: require('./lib/consumer')(config || {})
  };
};


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

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

Use default config if not setted
Use default config if not setted
