From 660c38d07e48a0d2f702ea8c6117ac4232be12cb 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 eb2ce8e12e..6ddd8491a2 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 {