[#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
parent
93eb72ef44
commit
e5a40b90b6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue