Skip to content

Commit

Permalink
Merge pull request #14 from dadi/feature/rsmq-init
Browse files Browse the repository at this point in the history
feat: initialize queue with queue name + options
  • Loading branch information
adamkdean authored Mar 2, 2018
2 parents 5094929 + 5544b12 commit b08f93b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/broker.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ Broker.prototype.processResponse = function (req, err) {
*/
Broker.prototype.initialiseQueue = function (options) {
/* istanbul ignore next */
return new Rsmq(options.queue)
return new Rsmq(options.broker.queue, options.queue)
}

/**
Expand Down

0 comments on commit b08f93b

Please sign in to comment.