weyoss / redis-smq

A simple high-performance Redis message queue for Node.js.
MIT License
588 stars 64 forks source link

project namespace bug #12

Closed apmcodes closed 6 years ago

apmcodes commented 6 years ago

In the consumer constructor, project namespace must be set (setNamespace()) before generating the keys (redisKeys.getKeys()).

Currently, while construing consumer this is causing the keys to be generated incorrectly with default namespace in it, like redis-smp-default. Rest of the times, getKeys generating correct keys.

Monitor needs namespace update in statsFrontend() if (config.hasOwnProperty('namespace')) redisKeys.setNamespace(config.namespace);

weyoss commented 6 years ago

Thank you for reporting the issue and for helping to make this project better.

weyoss commented 6 years ago

Closing as resolved.