[#2176] neofs-node: Do not invalidate old cache items

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2022-12-27 11:16:31 +03:00
parent c28bf87747
commit c2bdc16039

View file

@ -294,6 +294,10 @@ func (s *ttlContainerLister) update(owner user.ID, cnr cid.ID, add bool) {
return
}
if s.ttl <= time.Since(val.t) {
return
}
item := val.v
item.mtx.Lock()