Skip to content

Commit

Permalink
CLD-4642 Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
Stylianos Rigas authored and Stylianos Rigas committed Sep 11, 2023
1 parent ee541d1 commit 38835ad
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions internal/elrond/elrond_soak.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ import (

func checkSLOs(ring *model.Ring, thanosURL string, logger *logrus.Entry) error {
results, err := querySLOMetrics(ring, thanosURL, time.Now(), logger)
if err != nil {
return errors.Wrap(err, "failed to query thanos")
}

for _, result := range results {
if len(result) > 0 {
for _, rawMetric := range result {
Expand All @@ -30,9 +34,6 @@ func checkSLOs(ring *model.Ring, thanosURL string, logger *logrus.Entry) error {
}
}

if err != nil {
return errors.Wrap(err, "failed to query thanos")
}
return nil
}

Expand Down

0 comments on commit 38835ad

Please sign in to comment.