fix: lru lock

pull/2613/head
icey-yu 1 year ago
parent 3a45679378
commit de20311c4b

@ -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 {

Loading…
Cancel
Save