Skip to content

Commit

Permalink
formatting fixes and version bump after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
ghirsch1 committed Jan 11, 2021
1 parent 9be07af commit cbf1f96
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.25
0.0.26
2 changes: 1 addition & 1 deletion cmd/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func writeJSON(obj interface{}, path string) error {
}

func parallelize(repos []initialize.Repo, f func(initialize.Repo, context.Context) error) error {
return parallelizeLimited(repos, f, 10)
return parallelizeLimited(repos, f, 10)
}

// parallelize take a list of repos and applies a function (clone, plan, ...) to them
Expand Down
6 changes: 3 additions & 3 deletions cmd/plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var planCmd = &cobra.Command{
mp plan -b microplaning -m 'microplane fun' -r app-service -- python /absolute/path/to/script`,
Run: func(cmd *cobra.Command, args []string) {
var err error
var parallelismLimit int64
var parallelismLimit int64

changeCmd = args[0]
if len(args) > 1 {
Expand Down Expand Up @@ -66,8 +66,8 @@ mp plan -b microplaning -m 'microplane fun' -r app-service -- python /absolute/p
}
isSingleRepo = len(repos) == 1

parallelismLimit, err = cmd.Flags().GetInt64("parallelism")
log.Printf("planning %d repos with parallelism limit [%d]", len(repos), parallelismLimit)
parallelismLimit, err = cmd.Flags().GetInt64("parallelism")
log.Printf("planning %d repos with parallelism limit [%d]", len(repos), parallelismLimit)
err = parallelizeLimited(repos, planOneRepo, parallelismLimit)
if err != nil {
log.Fatalf("%d errors:\n %+v\n", strings.Count(err.Error(), " | ")+1, err)
Expand Down

0 comments on commit cbf1f96

Please sign in to comment.