Skip to content

Commit

Permalink
String formatting Wrapf
Browse files Browse the repository at this point in the history
Signed-off-by: Essam Eldaly <[email protected]>
  • Loading branch information
eeldaly committed Dec 13, 2024
1 parent 0907d83 commit 17f3510
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/ingester/limiter.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (l *Limiter) AssertMaxSeriesPerMetric(userID string, series int, metric str
return nil
}

return errors.Wrap(errMaxSeriesPerMetricLimitExceeded, "{metric name: " + metric + "}")
return errors.Wrapf(errMaxSeriesPerMetricLimitExceeded, "{metric name: %s}", metric)
}

// AssertMaxMetadataPerMetric limit has not been reached compared to the current
Expand All @@ -83,7 +83,7 @@ func (l *Limiter) AssertMaxMetadataPerMetric(userID string, metadata int, metric
return nil
}

return errors.Wrap(errMaxMetadataPerMetricLimitExceeded, "{metric name: " + metric + "}")
return errors.Wrapf(errMaxMetadataPerMetricLimitExceeded, "{metric name: %s}", metric)
}

// AssertMaxSeriesPerUser limit has not been reached compared to the current
Expand Down

0 comments on commit 17f3510

Please sign in to comment.