Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
Subscribe to topics on startConsuming
Browse files Browse the repository at this point in the history
  • Loading branch information
juriwiens committed Jun 17, 2020
1 parent 77664ec commit fa81cbc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/batch_consumer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ export class KafkaBatchConsumer extends (EventEmitter as new () => TypedEmitter)
if (this.consuming) {
return false
}
this.consumer.unsubscribe().subscribe(this.topics)
this.consuming = true
this.emit("consuming", true)
return this.startPolling()
Expand Down

0 comments on commit fa81cbc

Please sign in to comment.