mxriverlynn / rabbus

A micro-service bus with built-in messaging patterns, for NodeJS and RabbitMQ
116 stars 26 forks source link

Bug when calling stop #11

Closed benjsicam closed 8 years ago

benjsicam commented 8 years ago

Getting error below when calling stop.

/path/to/project/node_modules/rabbus/rabbus/lib/consumer.js:34
  logger.info("Stopping Consumer For '" + this.options.queueOptions.name + "'");

TypeError: Cannot read property 'name' of undefined
    at Subscriber.Consumer.stop (/path/to/project/node_modules/rabbus/rabbus/lib/consumer.js:34:68)
benjsicam commented 8 years ago

I think it should just be:

logger.info("Stopping Consumer For '" + this.options.queue.name + "'");
mxriverlynn commented 8 years ago

thanks for this, @benjsicam! i'm trying to get it pulled in, but having problems with my local rmq install at the moment. will get it done asap, though.

mxriverlynn commented 8 years ago

alright, got this done and released as v0.6.2