Merge pull request #12234 from aknuds1/chore/improve-histogram-comments

tsdb: Improve a couple of histogram documentation comments
This commit is contained in:
Björn Rabenstein 2023-04-12 10:55:22 +02:00 committed by GitHub
commit 8ed90b567b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -430,7 +430,7 @@ func (s *memSeries) appendable(t int64, v float64, headMaxt, minValidTime, oooTi
return false, headMaxt - t, storage.ErrOutOfOrderSample return false, headMaxt - t, storage.ErrOutOfOrderSample
} }
// appendableHistogram checks whether the given sample is valid for appending to the series. // appendableHistogram checks whether the given histogram is valid for appending to the series.
func (s *memSeries) appendableHistogram(t int64, h *histogram.Histogram) error { func (s *memSeries) appendableHistogram(t int64, h *histogram.Histogram) error {
c := s.head() c := s.head()
if c == nil { if c == nil {
@ -452,7 +452,7 @@ func (s *memSeries) appendableHistogram(t int64, h *histogram.Histogram) error {
return nil return nil
} }
// appendableFloatHistogram checks whether the given sample is valid for appending to the series. // appendableFloatHistogram checks whether the given float histogram is valid for appending to the series.
func (s *memSeries) appendableFloatHistogram(t int64, fh *histogram.FloatHistogram) error { func (s *memSeries) appendableFloatHistogram(t int64, fh *histogram.FloatHistogram) error {
c := s.head() c := s.head()
if c == nil { if c == nil {