From a56927e3d4e5cbd204bc42703b18c2ce9b68bd3b Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Tue, 18 Oct 2022 17:26:56 +0300 Subject: [PATCH] [#1818] writecache: Remove unused variable Signed-off-by: Evgenii Stratonikov --- pkg/local_object_storage/writecache/flush.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/local_object_storage/writecache/flush.go b/pkg/local_object_storage/writecache/flush.go index 5ac7c67ca8..ef1a6543b5 100644 --- a/pkg/local_object_storage/writecache/flush.go +++ b/pkg/local_object_storage/writecache/flush.go @@ -137,8 +137,6 @@ func (c *cache) flushBigObjects() { break } - evictNum := 0 - var prm common.IteratePrm prm.LazyHandler = func(addr oid.Address, f func() ([]byte, error)) error { sAddr := addr.EncodeToString() @@ -176,8 +174,6 @@ func (c *cache) flushBigObjects() { // mark object as flushed c.flushed.Add(sAddr, false) - evictNum++ - return nil }