Browse Source

RefreshCoordinator() will handle closing the coordinator if necessary

Tom Lee 7 năm trước cách đây
mục cha
commit
4ff43dddea
1 tập tin đã thay đổi với 0 bổ sung4 xóa
  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 {