Skip to content

Commit

Permalink
sql: fix more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan4th committed Dec 27, 2024
1 parent fc05df6 commit 1a6d17c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sql/querycache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ func TestCacheEviction(t *testing.T) {
require.Equal(t, i, v)
}

// This should cause the oldest key to be evicted with all of its subkeys
// This should cause the oldest key to be evicted
v, err := WithCachedValue(ctx, c, QueryCacheKey("kind1", "6"), func(context.Context) (int, error) {
return 6, nil
})
require.NoError(t, err)
require.Equal(t, 6, v)

// ... other keys and subkeys stay in place.
// ... other keys stay in place.
for i := 2; i <= 5; i++ {
k := strconv.Itoa(i)
v, err := WithCachedValue(ctx, c, QueryCacheKey("kind1", k), func(context.Context) (int, error) {
Expand Down

0 comments on commit 1a6d17c

Please sign in to comment.