Fix a couple of comments

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
pull/14424/head
Arve Knudsen 2 years ago
parent 89608c69a7
commit e410a215fb
  1. 2
      tsdb/chunkenc/xor.go
  2. 2
      tsdb/record/record.go

@ -60,7 +60,7 @@ type XORChunk struct {
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 {
b := make([]byte, 2, 128)
return &XORChunk{b: bstream{stream: b, count: 0}}

@ -543,7 +543,7 @@ func (d *Decoder) FloatHistogramSamples(rec []byte, histograms []RefFloatHistogr
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) {
fh.CounterResetHint = histogram.CounterResetHint(buf.Byte())

Loading…
Cancel
Save