Skip to content

Commit

Permalink
Merge pull request #21 from EYBlockchain/liju.jose/fix-rabbitmq-concu…
Browse files Browse the repository at this point in the history
…rrency

rabbitMQ concurrency issue fixed
  • Loading branch information
Westlad authored Mar 4, 2021
2 parents b2074d0 + 21d7b39 commit 3c445e1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src/utils/rabbitmq.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export default {

// publish message to a queue
async sendMessage(queue, data, options = {}) {
await this.channel.assertQueue(queue);
this.channel.sendToQueue(queue, Buffer.from(JSON.stringify(data)), options);
},

Expand Down
4 changes: 1 addition & 3 deletions test/queue.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ const fileToBuffer = filename => {
});
};

const generateUuid = () => `${Math.random().toString()}
${Math.random().toString()}
${Math.random().toString()}`;
const generateUuid = () => `${Math.random()}${Math.random()}${Math.random()}`;

const { expect } = chai;
let file;
Expand Down

0 comments on commit 3c445e1

Please sign in to comment.