From a82f2b8168d7670d13f209be09f50fe9f919414b Mon Sep 17 00:00:00 2001 From: piguagua Date: Sat, 18 Jan 2025 04:26:08 +0800 Subject: [PATCH] chore: fix function name and struct name in comment (#15827) Signed-off-by: piguagua --- tsdb/record/record_test.go | 2 +- web/api/v1/errors_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tsdb/record/record_test.go b/tsdb/record/record_test.go index dc625f0830..9b2eb89c5a 100644 --- a/tsdb/record/record_test.go +++ b/tsdb/record/record_test.go @@ -476,7 +476,7 @@ type recordsMaker struct { make refsCreateFn } -// BenchmarkWAL_HistogramLog measures efficiency of encoding classic +// BenchmarkWAL_HistogramEncoding measures efficiency of encoding classic // histograms and native historgrams with custom buckets (NHCB). func BenchmarkWAL_HistogramEncoding(b *testing.B) { initClassicRefs := func(labelCount, histograms, buckets int) (series []RefSeries, floatSamples []RefSample, histSamples []RefHistogramSample) { diff --git a/web/api/v1/errors_test.go b/web/api/v1/errors_test.go index 6ff0614c4c..1cc90a4b62 100644 --- a/web/api/v1/errors_test.go +++ b/web/api/v1/errors_test.go @@ -217,7 +217,7 @@ func (t errorTestSeriesSet) Warnings() annotations.Annotations { 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{} func (DummyScrapePoolsRetriever) ScrapePools() []string {