浏览代码

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 {