fix: lru lock

This commit is contained in:
icey-yu 2024-09-12 15:15:24 +08:00
parent 3a45679378
commit de20311c4b

View File

@ -99,7 +99,6 @@ func (x *LayLRU[K, V]) GetBatch(keys []K, fetch func(keys []K) (map[K]V, error))
queries := make([]K, 0)
setVs := make(map[K]*layLruItem[V])
for _, key := range keys {
x.lock.Unlock()
v, ok := x.core.Get(key)
x.lock.Unlock()
if ok {