kafka-observe
Advanced tools
Comparing version 2.0.1-alpha-2 to 2.0.1-alpha-3
@@ -38,5 +38,3 @@ const Kafkajs = require("kafkajs"); | ||
await consumer.connect(); | ||
this.options.topicsToFollow.forEach(topic => { | ||
await this.consumer.subscribe({ topic }) | ||
}); | ||
await Promise.all(this.options.topicsToFollow.map(topic => this.consumer.subscribe({ topic }))); | ||
logging.report(`Listening to kafka topics in all partions mode to the following topics: ${this.options.topicsToFollow.toString()}`); | ||
@@ -43,0 +41,0 @@ await consumer.run({ |
@@ -38,5 +38,3 @@ const Kafkajs = require("kafkajs"); | ||
await consumer.connect(); | ||
this.options.topicsToFollow.forEach(topic => { | ||
await this.consumer.subscribe({ topic }) | ||
}); | ||
await Promise.all(this.options.topicsToFollow.map(topic => this.consumer.subscribe({ topic }))); | ||
logging.report(`Listening to kafka topics in grouped mode to the following topics: ${this.options.topicsToFollow.toString()}`); | ||
@@ -43,0 +41,0 @@ await consumer.run({ |
{ | ||
"name": "kafka-observe", | ||
"version": "2.0.1-alpha-2", | ||
"version": "2.0.1-alpha-3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
327