瀏覽代碼

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))