chore: fix function name and struct name in comment

Signed-off-by: piguagua <piguagua@aliyun.com>
This commit is contained in:
piguagua 2025-01-15 15:39:07 +08:00
parent b3a9fa3df9
commit db465a33c8
2 changed files with 2 additions and 2 deletions

View file

@ -476,7 +476,7 @@ type recordsMaker struct {
make refsCreateFn make refsCreateFn
} }
// BenchmarkWAL_HistogramLog measures efficiency of encoding classic // BenchmarkWAL_HistogramEncoding measures efficiency of encoding classic
// histograms and native historgrams with custom buckets (NHCB). // histograms and native historgrams with custom buckets (NHCB).
func BenchmarkWAL_HistogramEncoding(b *testing.B) { func BenchmarkWAL_HistogramEncoding(b *testing.B) {
initClassicRefs := func(labelCount, histograms, buckets int) (series []RefSeries, floatSamples []RefSample, histSamples []RefHistogramSample) { initClassicRefs := func(labelCount, histograms, buckets int) (series []RefSeries, floatSamples []RefSample, histSamples []RefHistogramSample) {

View file

@ -217,7 +217,7 @@ func (t errorTestSeriesSet) Warnings() annotations.Annotations {
return nil return nil
} }
// DummyTargetRetriever implements github.com/prometheus/prometheus/web/api/v1.ScrapePoolsRetriever. // DummyScrapePoolsRetriever implements github.com/prometheus/prometheus/web/api/v1.ScrapePoolsRetriever.
type DummyScrapePoolsRetriever struct{} type DummyScrapePoolsRetriever struct{}
func (DummyScrapePoolsRetriever) ScrapePools() []string { func (DummyScrapePoolsRetriever) ScrapePools() []string {