Skip to content

Commit c27d116

Browse files
authored
chore: fix some function names in comment (#15096)
Signed-off-by: hongmengning <go@before.tech>
1 parent 44523e0 commit c27d116

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

‎pkg/storage/bloom/v1/filter/scalable.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ func (s *ScalableBloomFilter) Add(data []byte) Filter {
146146
return s
147147
}
148148

149-
// addWithMaxSize adds a new element to the filter,
149+
// AddWithMaxSize adds a new element to the filter,
150150
// unless adding would require the filter to grow above a given maxSize (0 for unlimited).
151151
// returns true if the filter is full, in which case the key was not added
152152
func (s *ScalableBloomFilter) AddWithMaxSize(data []byte, maxSize int) (full bool) {

‎pkg/storage/stores/series/series_index_store.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ func (c *IndexReaderWriter) LabelValuesForMetricName(ctx context.Context, userID
374374
return result.Strings(), nil
375375
}
376376

377-
// LabelValuesForMetricName retrieves all label values for a single label name and metric name.
377+
// labelValuesForMetricNameWithMatchers retrieves all label values for a single label name and metric name.
378378
func (c *IndexReaderWriter) labelValuesForMetricNameWithMatchers(ctx context.Context, userID string, from, through model.Time, metricName, labelName string, matchers ...*labels.Matcher) ([]string, error) {
379379
// Otherwise get series which include other matchers
380380
seriesIDs, err := c.lookupSeriesByMetricNameMatchers(ctx, from, through, userID, metricName, matchers)

‎pkg/storage/stores/shipper/bloomshipper/interval.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func (i Interval) Within(target Interval) bool {
6060
return i.Start >= target.Start && i.End <= target.End
6161
}
6262

63-
// ParseBoundsFromAddr parses a fingerprint bounds from a string
63+
// ParseIntervalFromAddr parses a fingerprint bounds from a string
6464
// Does not support negative times (times prior to Unix epoch).
6565
func ParseIntervalFromAddr(s string) (Interval, error) {
6666
parts := strings.Split(s, "-")

0 commit comments

Comments
 (0)