Skip to content

Commit

Permalink
https://github.com/tulios/kafkajs/pull/1474
Browse files Browse the repository at this point in the history
  • Loading branch information
thedustinsmith committed Jan 18, 2023
1 parent dcee697 commit 199bb10
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,9 @@ class KafkaJSAggregateError extends Error {
class KafkaJSFetcherRebalanceError extends Error {}

const isRebalancing = e =>
e.type === 'REBALANCE_IN_PROGRESS' || e.type === 'NOT_COORDINATOR_FOR_GROUP'
e.type === 'REBALANCE_IN_PROGRESS'
|| e.type === 'NOT_COORDINATOR_FOR_GROUP'
|| e.type === 'ILLEGAL_GENERATION'

const isKafkaJSError = e => e instanceof KafkaJSError

Expand Down

0 comments on commit 199bb10

Please sign in to comment.