Skip to content
This repository was archived by the owner on Apr 10, 2019. It is now read-only.

Commit 78e3fbd

Browse files
committed
Block on concurrency before launching goroutines.
1 parent 5507b26 commit 78e3fbd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

execute.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,11 @@ func runLinters(linters map[string]*Linter, paths []string, concurrency int, exc
132132
}
133133
for _, args := range partitions {
134134
wg.Add(1)
135+
concurrencych <- true
135136
// Call the goroutine with a copy of the args array so that the
136137
// contents of the array are not modified by the next iteration of
137138
// the above for loop
138139
go func(id int, args []string) {
139-
concurrencych <- true
140140
err := executeLinter(id, state, args)
141141
if err != nil {
142142
errch <- err

0 commit comments

Comments
 (0)