Skip to content

Commit

Permalink
Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Habib23me committed Jul 12, 2022
1 parent c5140d5 commit 471a13e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/message-broker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export abstract class MessageBroker {

this.queues[queue] = [handler];

this.channel.prefetch(1);
// this.channel.prefetch(1);
this.channel.consume(queue, async (msg: any) => {
console.log(`[ ${new Date()} ] Message received: ${JSON.stringify(JSON.parse(msg.content.toString('utf8')))}`);
if (msg !== null) {
Expand Down

0 comments on commit 471a13e

Please sign in to comment.