mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-05 20:36:13 +02:00
cleanup
Signed-off-by: Owen Williams <owen.williams@grafana.com>
This commit is contained in:
parent
dac4b846f8
commit
f16d01d894
@ -600,8 +600,6 @@ func (d *Decoder) histogramSamplesV2(dec *encoding.Decbuf, histograms []RefHisto
|
||||
Ref: firstRef,
|
||||
ST: firstST,
|
||||
}
|
||||
} else {
|
||||
prev = &histograms[len(histograms)-1]
|
||||
}
|
||||
|
||||
ref := int64(prev.Ref) + dec.Varint64()
|
||||
@ -636,7 +634,7 @@ func (d *Decoder) histogramSamplesV2(dec *encoding.Decbuf, histograms []RefHisto
|
||||
return nil, fmt.Errorf("error reducing resolution of histogram #%d: %w", len(histograms)+1, err)
|
||||
}
|
||||
}
|
||||
|
||||
prev = &rh
|
||||
histograms = append(histograms, rh)
|
||||
}
|
||||
|
||||
@ -779,8 +777,6 @@ func (d *Decoder) floatHistogramSamplesV2(dec *encoding.Decbuf, histograms []Ref
|
||||
Ref: firstRef,
|
||||
ST: firstST,
|
||||
}
|
||||
} else {
|
||||
prev = &histograms[len(histograms)-1]
|
||||
}
|
||||
|
||||
ref := int64(prev.Ref) + dec.Varint64()
|
||||
@ -816,6 +812,7 @@ func (d *Decoder) floatHistogramSamplesV2(dec *encoding.Decbuf, histograms []Ref
|
||||
}
|
||||
}
|
||||
|
||||
prev = &rfh
|
||||
histograms = append(histograms, rfh)
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user