[#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>
This commit is contained in:
parent
93eb72ef44
commit
e5a40b90b6
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
func (s *ttlContainerLister) update(owner user.ID, cnr cid.ID, add bool) {
|
||||||
strOwner := owner.EncodeToString()
|
strOwner := owner.EncodeToString()
|
||||||
|
|
||||||
val, ok := s.cache.Get(strOwner)
|
val, ok := s.cache.Peek(strOwner)
|
||||||
if !ok {
|
if !ok {
|
||||||
// we could cache the single cnr but in this case we will disperse
|
// we could cache the single cnr but in this case we will disperse
|
||||||
// with the Sidechain a lot
|
// with the Sidechain a lot
|
||||||
|
|
Loading…
Reference in a new issue