Skip to content

Commit

Permalink
ensure we default to 10 correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
davidejones authored and bep committed Mar 7, 2023
1 parent bebb2b8 commit 873be9f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deploy/deploy.go
Expand Up @@ -191,6 +191,9 @@ func (d *Deployer) Deploy(ctx context.Context) error {
// Apply the changes in parallel, using an inverted worker
// pool (https://www.youtube.com/watch?v=5zXAHh5tJqQ&t=26m58s).
// sem prevents more than nParallel concurrent goroutines.
if d.workers <= 0 {
d.workers = 10
}
nParallel := d.workers
var errs []error
var errMu sync.Mutex // protects errs
Expand Down

0 comments on commit 873be9f

Please sign in to comment.