Skip to content

Commit

Permalink
fix: remove one more copied var
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorwhitney committed Oct 4, 2024
1 parent 05035e7 commit 435eb6e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/storage/chunk/client/aws/dynamodb_index_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 435eb6e

Please sign in to comment.