Skip to content

Commit

Permalink
RefreshCoordinator() will handle closing the coordinator if necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaslee committed Dec 4, 2018
1 parent bad65e7 commit 4ff43dd
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions consumer_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,6 @@ func (c *consumerGroup) newSession(ctx context.Context, topics []string, handler
return nil, join.Err
}

_ = coordinator.Close()

return c.retryNewSession(ctx, topics, handler, retries, true)
case ErrRebalanceInProgress: // retry after backoff
if retries <= 0 {
Expand Down Expand Up @@ -264,8 +262,6 @@ func (c *consumerGroup) newSession(ctx context.Context, topics []string, handler
return nil, sync.Err
}

_ = coordinator.Close()

return c.retryNewSession(ctx, topics, handler, retries, true)
case ErrRebalanceInProgress: // retry after backoff
if retries <= 0 {
Expand Down

0 comments on commit 4ff43dd

Please sign in to comment.