diff --git a/tsdb/chunkenc/histogram.go b/tsdb/chunkenc/histogram.go index b962e45a4..6ceb866a5 100644 --- a/tsdb/chunkenc/histogram.go +++ b/tsdb/chunkenc/histogram.go @@ -590,9 +590,9 @@ func (a *HistogramAppender) Recode( return hc, app } -// RecodeHistogramm converts the current histogram (in-place) to accommodate an expansion of the set of +// RecodeHistogram converts the current histogram (in-place) to accommodate an expansion of the set of // (positive and/or negative) buckets used. -func (a *HistogramAppender) RecodeHistogramm( +func (a *HistogramAppender) RecodeHistogram( h *histogram.Histogram, pBackwardInter, nBackwardInter []Interjection, ) { diff --git a/tsdb/head_append.go b/tsdb/head_append.go index c62f4ffec..d4534c669 100644 --- a/tsdb/head_append.go +++ b/tsdb/head_append.go @@ -1172,7 +1172,7 @@ func (s *memSeries) appendHistogram(t int64, h *histogram.Histogram, appendID ui if len(pBackwardInter)+len(nBackwardInter) > 0 { h.PositiveSpans = pMergedSpans h.NegativeSpans = nMergedSpans - app.RecodeHistogramm(h, pBackwardInter, nBackwardInter) + app.RecodeHistogram(h, pBackwardInter, nBackwardInter) } // We have 3 cases here // - !okToAppend -> We need to cut a new chunk.