fix
This commit is contained in:
parent
e502f581e1
commit
ddf6e62e5a
2
cache/map.go
vendored
2
cache/map.go
vendored
|
@ -132,8 +132,8 @@ func (m *MapCache[K, V]) GetCacheBatch(c context.Context, key []K, timeout time.
|
||||||
var res []V
|
var res []V
|
||||||
ver := 0
|
ver := 0
|
||||||
needFlush := slice.FilterAndMap(key, func(k K) (r K, ok bool) {
|
needFlush := slice.FilterAndMap(key, func(k K) (r K, ok bool) {
|
||||||
ver += m.Ver(c, k)
|
|
||||||
if _, ok := m.Get(c, k); !ok {
|
if _, ok := m.Get(c, k); !ok {
|
||||||
|
ver += m.Ver(c, k)
|
||||||
return k, true
|
return k, true
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue
Block a user