* fix:log

* fix: lock
pull/2638/head
icey-yu 2 months ago committed by GitHub
parent 9424e3ed5f
commit 9c92fbb8a9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -94,11 +94,11 @@ func (x *LayLRU[K, V]) GetBatch(keys []K, fetch func(keys []K) (map[K]V, error))
once sync.Once
)
x.lock.Lock()
res := make(map[K]V)
queries := make([]K, 0)
setVs := make(map[K]*layLruItem[V])
for _, key := range keys {
x.lock.Lock()
v, ok := x.core.Get(key)
x.lock.Unlock()
if ok {

Loading…
Cancel
Save