Skip to content

Commit

Permalink
Fix bug in kafka lib
Browse files Browse the repository at this point in the history
  • Loading branch information
awlayton committed Apr 27, 2021
1 parent 7805796 commit 4fb0cd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oada/libs/oada-lib-kafka/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ class Base extends EventEmitter {
await this.consumer.connect();
await this.producer.connect();

this.consumer.subscribe({ topic: this.consumeTopic });
this.consumer.run({
await this.consumer.subscribe({ topic: this.consumeTopic });
await this.consumer.run({
eachMessage: async ({
message: { value, ...data },
}) => {
Expand Down

0 comments on commit 4fb0cd4

Please sign in to comment.