Skip to content

Commit 8d2b16c

Browse files
committed
fix Lookup in index interface
Signed-off-by: sagiahrac <[email protected]> Signed-off-by: Sage Ahrac <[email protected]>
1 parent 0adf094 commit 8d2b16c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pkg/kvcache/kvblock/index.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,9 @@ type Index interface {
107107
// If the podIdentifierSet is empty, all pods are returned.
108108
//
109109
// It returns:
110-
// 1. A slice of the hit keys.
111-
// 2. A map where the keys are those in (1) and the values are pod-identifiers.
112-
// 3. An error if any occurred during the operation.
113-
Lookup(ctx context.Context, keys []Key, podIdentifierSet sets.Set[string]) ([]Key, map[Key][]string, error)
110+
// 1. A map where the keys are those in (1) and the values are pod-identifiers.
111+
// 2. An error if any occurred during the operation.
112+
Lookup(ctx context.Context, keys []Key, podIdentifierSet sets.Set[string]) (map[Key][]string, error)
114113
// Add adds a set of keys and their associated pod entries to the index backend.
115114
Add(ctx context.Context, keys []Key, entries []PodEntry) error
116115
// Evict removes a key and its associated pod entries from the index backend.

0 commit comments

Comments
 (0)