Skip to content

Commit db259f6

Browse files
committed
fix instrumentedIndex Lookup
1 parent 9981f8f commit db259f6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pkg/kvcache/kvblock/instrumented_index.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,13 @@ func (m *instrumentedIndex) Lookup(
3434
ctx context.Context,
3535
keys []Key,
3636
podIdentifierSet sets.Set[string],
37-
) ([]Key, map[Key][]string, error) {
37+
) (map[Key][]string, error) {
3838
timer := prometheus.NewTimer(metrics.LookupLatency)
3939
defer timer.ObserveDuration()
4040

4141
metrics.LookupRequests.Inc()
4242

43-
hitKeys, pods, err := m.next.Lookup(ctx, keys, podIdentifierSet)
44-
metrics.LookupHits.Add(float64(len(hitKeys)))
43+
pods, err := m.next.Lookup(ctx, keys, podIdentifierSet)
4544

46-
return hitKeys, pods, err
45+
return pods, err
4746
}

0 commit comments

Comments
 (0)