From 672400ea28cd4b98f171a3b10967b4ffcdbdc39c Mon Sep 17 00:00:00 2001 From: kindknow Date: Thu, 11 Apr 2024 18:11:50 +0800 Subject: [PATCH] chore: fix function names in comment Signed-off-by: kindknow --- integration/e2e/metrics_options.go | 4 ++-- pkg/ingester/ingester.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/integration/e2e/metrics_options.go b/integration/e2e/metrics_options.go index f52a1634667..506240638fc 100644 --- a/integration/e2e/metrics_options.go +++ b/integration/e2e/metrics_options.go @@ -38,13 +38,13 @@ func WithLabelMatchers(matchers ...*labels.Matcher) MetricsOption { } } -// WithWaitMissingMetrics is an option to wait whenever an expected metric is missing. If this +// WaitMissingMetrics is an option to wait whenever an expected metric is missing. If this // option is not enabled, will return error on missing metrics. func WaitMissingMetrics(opts *MetricsOptions) { opts.WaitMissingMetrics = true } -// SkipWaitMissingMetrics is an option to skip/ignore whenever an expected metric is missing. +// SkipMissingMetrics is an option to skip/ignore whenever an expected metric is missing. func SkipMissingMetrics(opts *MetricsOptions) { opts.SkipMissingMetrics = true } diff --git a/pkg/ingester/ingester.go b/pkg/ingester/ingester.go index a89c19e931f..1b552c330e4 100644 --- a/pkg/ingester/ingester.go +++ b/pkg/ingester/ingester.go @@ -448,7 +448,7 @@ func (u *userTSDB) blocksToDelete(blocks []*tsdb.Block) map[ulid.ULID]struct{} { return result } -// updateCachedShipperBlocks reads the shipper meta file and updates the cached shipped blocks. +// updateCachedShippedBlocks reads the shipper meta file and updates the cached shipped blocks. func (u *userTSDB) updateCachedShippedBlocks() error { shipperMeta, err := shipper.ReadMetaFile(u.shipperMetadataFilePath) if os.IsNotExist(err) || os.IsNotExist(errors.Cause(err)) {