Skip to content

Commit

Permalink
Add an improvement comment
Browse files Browse the repository at this point in the history
  • Loading branch information
banjoh committed Sep 14, 2023
1 parent 0298f96 commit 0b5bbb5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/collect/redact.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ func RedactResult(bundlePath string, input CollectorResult, additionalRedactors
// Error channel to capture errors from goroutines
errorCh := make(chan error, len(input))

// TODO: With a large bundle that has many files, this could lead to an explosion of goroutines.
// We should consider limiting the number of goroutines that can run. That limit should be
// configurable. Having these as standlone functions limits us a bit though.
for k, v := range input {

wg.Add(1)
Expand Down

0 comments on commit 0b5bbb5

Please sign in to comment.