Skip to content

Commit

Permalink
Remove jobs definition of producer example (#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Mar 31, 2020
1 parent ca7de7a commit 30c5958
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions examples/docker/producer/producer.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,7 @@ async function boot() {
host: process.env.REDIS_HOST,
};

const jobs = {
add: {
perform: async (a, b) => {
const answer = a + b;
return answer;
},
},
subtract: {
perform: (a, b) => {
const answer = a - b;
return answer;
},
},
};

queue = new Queue({ connection: connectionDetails }, jobs);
queue = new Queue({ connection: connectionDetails });
queue.on("error", function (error) {
console.log(error);
});
Expand Down

0 comments on commit 30c5958

Please sign in to comment.