Skip to content

Commit

Permalink
fix: remove unwanted stub methods
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulbile committed Jan 6, 2017
1 parent 6db13b8 commit 3ef60e0
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions lib/rabbit-topology.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,19 +94,6 @@ module.exports = function rabbitTopology() {
// Loop through all the defined queues
_.forEach(StubmodelModel.topology, handlers => {


// Setup the consumer of this queue
if (handlers.consumer) {
const modelName = handlers.consumer.model
const methodName = handlers.consumer.method
const Model = StubmodelModel.app.models[modelName]

// Log if the method does not exists yet
Model[methodName] = function stubQueueConsumer() {
debug(`${modelName}.${methodName} is not initialised yet`)
}
}

// Setup the producers of this queue
if (handlers.producer) {
const modelName = handlers.producer.model
Expand Down

0 comments on commit 3ef60e0

Please sign in to comment.