Skip to content

Commit

Permalink
fix: changed subscription callback signature
Browse files Browse the repository at this point in the history
  • Loading branch information
ernest-okot committed May 1, 2018
1 parent be4d785 commit 6659cef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/topic/consumer.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class TopicConsumer {
}

try {
await callback(JSON.parse(msg.content.toString()), topic);
await callback(topic, JSON.parse(msg.content.toString()));
this.channel.ack(msg);
} catch (error) {
// Catch error
Expand Down

0 comments on commit 6659cef

Please sign in to comment.