Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix function names #5863

Merged
merged 1 commit into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading