Skip to content

Commit

Permalink
doc: updaet readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ngot committed Mar 27, 2018
1 parent 5624319 commit 1de2b1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const consumer = new Consumer({
// isBroadcast: true,
});

consumer.subscribe(config.topic, '*', function*(msg) {
consumer.subscribe(config.topic, '*', async msg => {
console.log(`receive message, msgId: ${msg.msgId}, body: ${msg.body.toString()}`)
});

Expand Down

0 comments on commit 1de2b1a

Please sign in to comment.