Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Maniktherana committed Jul 11, 2024
1 parent 4c0d777 commit 02b4fe8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion model/textparse/openmetricsparse.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ func (p *OpenMetricsParser) CreatedTimestamp() *int64 {
}

// We got a CT line here, but let's search if CT line is actually for our series, edge case.
peekWithoutNameLsetHash, buf = peekedLset.HashWithoutLabels(buf, labels.MetricName, "le", "quantile")
peekWithoutNameLsetHash, _ = peekedLset.HashWithoutLabels(buf, labels.MetricName, "le", "quantile")
if peekWithoutNameLsetHash != currWithoutNameLsetHash {
// CT line for a different series, for our series no CT.
return nil
Expand All @@ -278,6 +278,7 @@ func (p *OpenMetricsParser) CreatedTimestamp() *int64 {
return &ct
}
}

func typeRequiresCT(t model.MetricType) bool {
switch t {
case model.MetricTypeCounter, model.MetricTypeSummary, model.MetricTypeHistogram:
Expand Down

0 comments on commit 02b4fe8

Please sign in to comment.