Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
Signed-off-by: rleungx <[email protected]>
  • Loading branch information
rleungx committed Jan 17, 2019
1 parent 35b0eeb commit ea9a0bb
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions server/core/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -449,13 +449,11 @@ func (s *StoreInfo) MergeLabels(labels []*metapb.StoreLabel) []*metapb.StoreLabe
L:
for _, newLabel := range labels {
for _, label := range storeLabels {
fmt.Println("newLabel label", newLabel, label, strings.EqualFold(label.Key, newLabel.Key))
if strings.EqualFold(label.Key, newLabel.Key) {
label.Value = newLabel.Value
continue L
}
}
fmt.Println("append", newLabel)
storeLabels = append(storeLabels, newLabel)
}
return storeLabels
Expand Down

0 comments on commit ea9a0bb

Please sign in to comment.