forked from TrueCloudLab/frostfs-node
[#2062] services/policer: Use a proper key for object cache
Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
This commit is contained in:
parent
b1025bdb42
commit
660c38d07e
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ func (p *Policer) shardPolicyWorker(ctx context.Context) {
|
|||
|
||||
p.processObject(ctx, addr)
|
||||
|
||||
p.cache.Add(addr, time.Now())
|
||||
p.cache.Add(addr.Address, time.Now())
|
||||
p.objsInWork.remove(addr.Address)
|
||||
})
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue