Skip to content

Commit

Permalink
added comment to concurrency thing
Browse files Browse the repository at this point in the history
  • Loading branch information
akhilanarayanan authored and trevorwhitney committed Aug 21, 2023
1 parent 1a449a0 commit 52f0871
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/storage/stores/series/series_index_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ func (c *indexReaderWriter) chunksToSeries(ctx context.Context, in []logproto.Ch
}))
}

// making this a slice of slices and flattening it out later avoids a concurrency issue
results := make([][]labels.Labels, len(jobs))

// Picking an arbitrary bound of 20 numConcurrent jobs.
Expand Down

0 comments on commit 52f0871

Please sign in to comment.