Преглед на файлове

Process partition metadata in event of topic-level error

As per 1b465e78c274a76c0a522272cac25e39ddaa0d07, "I can't think of a case where
the stale data from the last "complete" update is somehow more useful than the
up-to-date partial data."
Evan Huus преди 11 години
родител
ревизия
fe696f85ab
променени са 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))