Skip to content

Commit

Permalink
handling decoding error
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysied committed Jan 20, 2021
1 parent e64c406 commit 002fe02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon-resizer/nanny/kubernetes_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func (k *kubernetesClient) countNodesThroughMetrics() (uint64, error) {
if err == io.EOF {
break
}
continue
return 0, fmt.Errorf("decoding error: %v", err)
}

if !hasEqualValues(objectCountMetricName, mf.Name) {
Expand Down

0 comments on commit 002fe02

Please sign in to comment.