Skip to content
This repository was archived by the owner on Aug 23, 2023. It is now read-only.

Commit 142a893

Browse files
committed
fix benchmark TagQueryKeysByPrefixSimple
1 parent bc6c8b7 commit 142a893

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

idx/memory/memory_find_test.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -1219,14 +1219,12 @@ func benchmarkTagQueryKeysByPrefixSimple(b *testing.B) {
12191219

12201220
type testCase struct {
12211221
prefix string
1222-
expr []string
12231222
from int64
12241223
expRes []string
12251224
}
12261225

12271226
tc := testCase{
12281227
prefix: "di",
1229-
expr: []string{},
12301228
from: 100,
12311229
expRes: []string{"direction", "disk"},
12321230
}
@@ -1235,7 +1233,7 @@ func benchmarkTagQueryKeysByPrefixSimple(b *testing.B) {
12351233
b.ResetTimer()
12361234

12371235
for n := 0; n < b.N; n++ {
1238-
autoCompleteTagsWithQueryAndCompare(b, n, tc.prefix, tc.expr, tc.from, 2, tc.expRes)
1236+
autoCompleteTagsAndCompare(b, n, tc.prefix, tc.from, 2, tc.expRes)
12391237
}
12401238
}
12411239

0 commit comments

Comments
 (0)