Skip to content

Commit

Permalink
chore: fix function name (#2021)
Browse files Browse the repository at this point in the history
  • Loading branch information
socialsister committed Apr 29, 2024
1 parent c742605 commit 5ae70e3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index/scorch/persister.go
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,7 @@ func getTimeSeriesSnapshots(maxDataPoints int, interval time.Duration,
return ptr, rv
}

// getProtectedEpochs aims to fetch the epochs keep based on a timestamp basis.
// getProtectedSnapshots aims to fetch the epochs keep based on a timestamp basis.
// It tries to get NumSnapshotsToKeep snapshots, each of which are separated
// by a time duration of RollbackSamplingInterval.
func getProtectedSnapshots(rollbackSamplingInterval time.Duration,
Expand Down
2 changes: 1 addition & 1 deletion mapping/field.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func newTextFieldMappingDynamic(im *IndexMappingImpl) *FieldMapping {
return rv
}

// NewKeyworFieldMapping returns a default field mapping for text with analyzer "keyword".
// NewKeywordFieldMapping returns a default field mapping for text with analyzer "keyword".
func NewKeywordFieldMapping() *FieldMapping {
return &FieldMapping{
Type: "text",
Expand Down
2 changes: 1 addition & 1 deletion search/query/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ type ValidatableQuery interface {
Validate() error
}

// ParseQuery deserializes a JSON representation of
// ParsePreSearchData deserializes a JSON representation of
// a PreSearchData object.
func ParsePreSearchData(input []byte) (map[string]interface{}, error) {
var rv map[string]interface{}
Expand Down

0 comments on commit 5ae70e3

Please sign in to comment.