From 435eb6e59acef1017dde56e0cd1aa08ef14542af Mon Sep 17 00:00:00 2001 From: Trevor Whitney Date: Fri, 4 Oct 2024 10:31:50 -0600 Subject: [PATCH] fix: remove one more copied var --- pkg/storage/chunk/client/aws/dynamodb_index_reader.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/storage/chunk/client/aws/dynamodb_index_reader.go b/pkg/storage/chunk/client/aws/dynamodb_index_reader.go index 63ccc068259dc..73c1cb74c75a7 100644 --- a/pkg/storage/chunk/client/aws/dynamodb_index_reader.go +++ b/pkg/storage/chunk/client/aws/dynamodb_index_reader.go @@ -80,8 +80,7 @@ func (r *dynamodbIndexReader) ReadIndexEntries(ctx context.Context, tableName st var readerGroup errgroup.Group // Start a goroutine for each processor - for i, processor := range processors { - segment := i + for segment, processor := range processors { readerGroup.Go(func() error { input := &dynamodb.ScanInput{ TableName: aws.String(tableName),