From 64b83f8220c0afb346e0ed7c22a5355b9f09f283 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Thu, 14 Mar 2024 12:27:43 +0300 Subject: [PATCH] [#209] Makefile: Update golangci-lint to 1.56.2 Signed-off-by: Evgenii Stratonikov --- Makefile | 2 +- pool/pool.go | 2 +- pool/tree/pool.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 84e18a9..e150980 100755 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ ANTLR_VERSION="4.13.0" TMP_DIR := .cache -LINT_VERSION ?= 1.55.0 +LINT_VERSION ?= 1.56.2 TRUECLOUDLAB_LINT_VERSION ?= 0.0.2 OUTPUT_LINT_DIR ?= $(shell pwd)/bin LINT_DIR = $(OUTPUT_LINT_DIR)/golangci-lint-$(LINT_VERSION)-v$(TRUECLOUDLAB_LINT_VERSION) diff --git a/pool/pool.go b/pool/pool.go index 0b83728..7392e48 100644 --- a/pool/pool.go +++ b/pool/pool.go @@ -2049,7 +2049,7 @@ func (p *Pool) updateNodesHealth(ctx context.Context, buffers [][]float64) { wg.Add(1) bufferWeights := buffers[i] - go func(i int, innerPool *innerPool) { + go func(i int, _ *innerPool) { defer wg.Done() p.updateInnerNodesHealth(ctx, i, bufferWeights) }(i, inner) diff --git a/pool/tree/pool.go b/pool/tree/pool.go index bffe6e9..38ef09e 100644 --- a/pool/tree/pool.go +++ b/pool/tree/pool.go @@ -677,7 +677,7 @@ func (p *Pool) updateNodesHealth(ctx context.Context, buffers [][]bool) { for i, inner := range p.innerPools { wg.Add(1) - go func(i int, innerPool *innerPool) { + go func(i int, _ *innerPool) { defer wg.Done() p.updateInnerNodesHealth(ctx, i, buffers[i]) }(i, inner)