all: remove remaining uses of untyped golang-lru (#26194)

This commit is contained in:
Felix Lange
2022-11-17 11:15:28 +01:00
committed by GitHub
parent c3b42683b3
commit 12df45662a
8 changed files with 66 additions and 68 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ type cacheItem[K any, V any] struct {
// NewBasicLRU creates a new LRU cache.
func NewBasicLRU[K comparable, V any](capacity int) BasicLRU[K, V] {
if capacity < 0 {
if capacity <= 0 {
capacity = 1
}
c := BasicLRU[K, V]{