Skip to content

Commit

Permalink
Merge pull request #545 from Collaborne/pr/assigner-protocol-subscrib…
Browse files Browse the repository at this point in the history
…ed-topics

Provide the _subscribed_ topics to the protocol() function
  • Loading branch information
Nevon authored Mar 16, 2020
2 parents 385be11 + 2ee7636 commit 03409e2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/consumer/consumerGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@ module.exports = class ConsumerGroup {
sessionTimeout,
rebalanceTimeout,
memberId: this.memberId || '',
groupProtocols: this.assigners.map(assigner => assigner.protocol({ topics: this.topics })),
groupProtocols: this.assigners.map(assigner =>
assigner.protocol({
topics: this.topicsSubscribed,
})
),
})

this.generationId = groupData.generationId
Expand Down

0 comments on commit 03409e2

Please sign in to comment.