chore: remove mName

Signed-off-by: Manik Rana <manikrana54@gmail.com>
This commit is contained in:
Manik Rana 2024-07-11 10:43:50 +05:30
parent 0d7ac7caf5
commit e6f6165c9b

View file

@ -77,7 +77,6 @@ type OpenMetricsParser struct {
series []byte series []byte
text []byte text []byte
mtype model.MetricType mtype model.MetricType
mName string
val float64 val float64
ts int64 ts int64
hasTS bool hasTS bool
@ -304,7 +303,6 @@ func deepCopy(p *OpenMetricsParser) OpenMetricsParser {
newParser := OpenMetricsParser{ newParser := OpenMetricsParser{
l: newLexer, l: newLexer,
mtype: p.mtype, mtype: p.mtype,
mName: p.mName,
val: p.val, val: p.val,
skipCT: false, skipCT: false,
} }
@ -355,7 +353,6 @@ func (p *OpenMetricsParser) Next() (Entry, error) {
mEnd-- mEnd--
} }
p.offsets = append(p.offsets, mStart, mEnd) p.offsets = append(p.offsets, mStart, mEnd)
p.mName = string(p.l.b[mStart:mEnd])
default: default:
return EntryInvalid, p.parseError("expected metric name after "+t.String(), t2) return EntryInvalid, p.parseError("expected metric name after "+t.String(), t2)
} }