فهرست منبع

Merge pull request #265 from Shopify/no-stale-metadata

Process partition metadata in event of topic-level error
Evan Huus 11 سال پیش
والد
کامیت
77354d55ff
1فایلهای تغییر یافته به همراه0 افزوده شده و 2 حذف شده
  1. 0 2
      client.go

+ 0 - 2
client.go

@@ -537,10 +537,8 @@ func (client *Client) update(data *MetadataResponse) ([]string, error) {
 			break
 		case LeaderNotAvailable:
 			toRetry[topic.Name] = true
-			continue
 		default:
 			err = topic.Err
-			continue
 		}
 
 		client.metadata[topic.Name] = make(map[int32]*PartitionMetadata, len(topic.Partitions))