Skip to content

Commit 467c995

Browse files
rahulbileTom Kirkpatrick
authored and
Tom Kirkpatrick
committed
fix: remove unwanted consumer stub method (#8)
1 parent 6db13b8 commit 467c995

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

lib/rabbit-topology.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -94,19 +94,6 @@ module.exports = function rabbitTopology() {
9494
// Loop through all the defined queues
9595
_.forEach(StubmodelModel.topology, handlers => {
9696

97-
98-
// Setup the consumer of this queue
99-
if (handlers.consumer) {
100-
const modelName = handlers.consumer.model
101-
const methodName = handlers.consumer.method
102-
const Model = StubmodelModel.app.models[modelName]
103-
104-
// Log if the method does not exists yet
105-
Model[methodName] = function stubQueueConsumer() {
106-
debug(`${modelName}.${methodName} is not initialised yet`)
107-
}
108-
}
109-
11097
// Setup the producers of this queue
11198
if (handlers.producer) {
11299
const modelName = handlers.producer.model

0 commit comments

Comments
 (0)