[#2062] services/policer: Use a proper key for object cache

Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
This commit is contained in:
Evgenii Stratonikov 2022-11-16 11:01:53 +03:00 committed by fyrchik
parent b1025bdb42
commit 660c38d07e

View file

@ -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 {