mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 05:34:05 -08:00
Merge pull request #14424 from aknuds1/arve/fix-comments
Fix a couple of comments
This commit is contained in:
commit
d002fad00c
|
@ -60,7 +60,7 @@ type XORChunk struct {
|
||||||
b bstream
|
b bstream
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewXORChunk returns a new chunk with XOR encoding of the given size.
|
// NewXORChunk returns a new chunk with XOR encoding.
|
||||||
func NewXORChunk() *XORChunk {
|
func NewXORChunk() *XORChunk {
|
||||||
b := make([]byte, 2, 128)
|
b := make([]byte, 2, 128)
|
||||||
return &XORChunk{b: bstream{stream: b, count: 0}}
|
return &XORChunk{b: bstream{stream: b, count: 0}}
|
||||||
|
|
|
@ -543,7 +543,7 @@ func (d *Decoder) FloatHistogramSamples(rec []byte, histograms []RefFloatHistogr
|
||||||
return histograms, nil
|
return histograms, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Decode decodes a Histogram from a byte slice.
|
// DecodeFloatHistogram decodes a Histogram from a byte slice.
|
||||||
func DecodeFloatHistogram(buf *encoding.Decbuf, fh *histogram.FloatHistogram) {
|
func DecodeFloatHistogram(buf *encoding.Decbuf, fh *histogram.FloatHistogram) {
|
||||||
fh.CounterResetHint = histogram.CounterResetHint(buf.Byte())
|
fh.CounterResetHint = histogram.CounterResetHint(buf.Byte())
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue