From 402bbba15aa22a6eff98e13afce038e4f5554a9f Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Wed, 16 Nov 2022 11:01:53 +0300 Subject: [PATCH] [#2062] services/policer: Use a proper key for object cache Signed-off-by: Evgenii Stratonikov --- pkg/services/policer/process.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/services/policer/process.go b/pkg/services/policer/process.go index eb2ce8e1..6ddd8491 100644 --- a/pkg/services/policer/process.go +++ b/pkg/services/policer/process.go @@ -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 {