Skip to content

Commit

Permalink
Fix function names (#5863)
Browse files Browse the repository at this point in the history
Signed-off-by: momantech <cuimoman@qq.com>
  • Loading branch information
momantech authored Apr 17, 2024
1 parent c14d480 commit 9392bab
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pkg/storage/tsdb/bucketindex/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func (m *BlockDeletionMark) GetDeletionTime() time.Time {
return time.Unix(m.DeletionTime, 0)
}

// ThanosMeta returns the Thanos deletion mark.
// ThanosDeletionMark returns the Thanos deletion mark.
func (m *BlockDeletionMark) ThanosDeletionMark() *metadata.DeletionMark {
return &metadata.DeletionMark{
ID: m.ID,
Expand Down
2 changes: 1 addition & 1 deletion pkg/storage/tsdb/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func (cfg *TSDBConfig) BlocksDir(userID string) string {
return filepath.Join(cfg.Dir, userID)
}

// IsShippingEnabled returns whether blocks shipping is enabled.
// IsBlocksShippingEnabled returns whether blocks shipping is enabled.
func (cfg *TSDBConfig) IsBlocksShippingEnabled() bool {
return cfg.ShipInterval > 0
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/limiter/query_limiter.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func QueryLimiterFromContextWithFallback(ctx context.Context) *QueryLimiter {
return ql
}

// AddSeriesBatch adds the batch of input series and returns an error if the limit is reached.
// AddSeries adds the batch of input series and returns an error if the limit is reached.
func (ql *QueryLimiter) AddSeries(series ...[]cortexpb.LabelAdapter) error {
// If the max series is unlimited just return without managing map
if ql.maxSeriesPerQuery == 0 {
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/metrics_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ func GetSumOfHistogramSampleCount(families []*dto.MetricFamily, metricName strin
return sum
}

// GetLables returns list of label combinations used by this collector at the time of call.
// GetLabels returns list of label combinations used by this collector at the time of call.
// This can be used to find and delete unused metrics.
func GetLabels(c prometheus.Collector, filter map[string]string) ([]labels.Labels, error) {
ch := make(chan prometheus.Metric, 16)
Expand Down
2 changes: 1 addition & 1 deletion tools/querytee/response_comparator.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type SamplesComparator struct {
sampleTypesComparator map[string]SamplesComparatorFunc
}

// RegisterSamplesComparator helps with registering custom sample types
// RegisterSamplesType helps with registering custom sample types
func (s *SamplesComparator) RegisterSamplesType(samplesType string, comparator SamplesComparatorFunc) {
s.sampleTypesComparator[samplesType] = comparator
}
Expand Down

0 comments on commit 9392bab

Please sign in to comment.