diff --git a/lib/storage/index_db_timing_test.go b/lib/storage/index_db_timing_test.go index ed090553f1..e2c84135dd 100644 --- a/lib/storage/index_db_timing_test.go +++ b/lib/storage/index_db_timing_test.go @@ -206,7 +206,7 @@ func BenchmarkHeadPostingForMatchers(b *testing.B) { b.Run(`i=~".*"`, func(b *testing.B) { tfs := NewTagFilters(accountID, projectID) addTagFilter(tfs, "i", ".*", false, true) - benchSearch(b, tfs, 5e6) + benchSearch(b, tfs, 0) }) b.Run(`i=~".+"`, func(b *testing.B) { tfs := NewTagFilters(accountID, projectID) diff --git a/lib/storage/tag_filters.go b/lib/storage/tag_filters.go index 60345a5845..8428dc5220 100644 --- a/lib/storage/tag_filters.go +++ b/lib/storage/tag_filters.go @@ -168,7 +168,7 @@ func (tfs *TagFilters) Add(key, value []byte, isNegative, isRegexp bool) error { } if isRegexp && string(value) == ".*" { if !isNegative { - // Skip tag filter matching anything, since it equal to no filter. + // Skip tag filter matching anything, since it equals to no filter. return nil }