fix
This commit is contained in:
parent
cd4787991d
commit
936d033547
1
cache/map.go
vendored
1
cache/map.go
vendored
|
@ -168,6 +168,7 @@ func (m *MapCache[K, V]) GetCacheBatch(c context.Context, key []K, timeout time.
|
||||||
v, ok := r[k]
|
v, ok := r[k]
|
||||||
if ok {
|
if ok {
|
||||||
res[i] = v
|
res[i] = v
|
||||||
|
m.Set(c, k, v)
|
||||||
} else {
|
} else {
|
||||||
v, ok = m.Get(c, k)
|
v, ok = m.Get(c, k)
|
||||||
if ok {
|
if ok {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user