소스 검색

RefreshCoordinator() will handle closing the coordinator if necessary

Tom Lee 7 년 전
부모
커밋
4ff43dddea
1개의 변경된 파일0개의 추가작업 그리고 4개의 파일을 삭제
  1. 0 4
      consumer_group.go

+ 0 - 4
consumer_group.go

@@ -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 {
@@ -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 {