[#2176] neofs-node: `Peek` during cache invalidation

`Get` needs write mutex and makes our item move to top.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
remotes/1719560681081266516/tmp_refs/heads/carpawell/fix/multiple-cache-update-requests-FROST
Evgenii Stratonikov 2022-12-27 10:08:01 +03:00 committed by fyrchik
parent 93eb72ef44
commit e5a40b90b6
1 changed files with 1 additions and 1 deletions

View File

@ -287,7 +287,7 @@ func (s ttlContainerLister) List(id *user.ID) ([]cid.ID, error) {
func (s *ttlContainerLister) update(owner user.ID, cnr cid.ID, add bool) {
strOwner := owner.EncodeToString()
val, ok := s.cache.Get(strOwner)
val, ok := s.cache.Peek(strOwner)
if !ok {
// we could cache the single cnr but in this case we will disperse
// with the Sidechain a lot