Skip to content

Commit 8cf325e

Browse files
committed
fix instrumentedIndex Lookup
Signed-off-by: sagiahrac <[email protected]> Signed-off-by: Sage Ahrac <[email protected]>
1 parent 4656cfe commit 8cf325e

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)