From 6e2f7e291debc8c6b8bdd69bc83c36a2caac5e5e 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 5ac7c67ca..ef1a6543b 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 }