Skip to content

Commit 9676bff

Browse files
authored
Remove hidden parallelism flag from app (#3821)
1 parent 5f3a4d7 commit 9676bff

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

private/pkg/app/appext/builder.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import (
2222
"time"
2323

2424
"github.com/bufbuild/buf/private/pkg/app"
25-
"github.com/bufbuild/buf/private/pkg/thread"
2625
"github.com/pkg/profile"
2726
"github.com/spf13/pflag"
2827
)
@@ -40,8 +39,6 @@ type builder struct {
4039
profileType string
4140
profileAllowError bool
4241

43-
parallelism int
44-
4542
timeout time.Duration
4643

4744
defaultTimeout time.Duration
@@ -82,8 +79,6 @@ func (b *builder) BindRoot(flagSet *pflag.FlagSet) {
8279
// We do not officially support this flag, this is for testing, where we need warnings turned off.
8380
flagSet.BoolVar(&b.noWarn, "no-warn", false, "Turn off warn logging")
8481
_ = flagSet.MarkHidden("no-warn")
85-
flagSet.IntVar(&b.parallelism, "parallelism", 0, "Manually control the parallelism")
86-
_ = flagSet.MarkHidden("parallelism")
8782

8883
// We used to have this as a global flag, so we still need to not error when it is called.
8984
var verbose bool
@@ -126,10 +121,6 @@ func (b *builder) run(
126121
}
127122
container := newContainer(nameContainer, logger)
128123

129-
if b.parallelism > 0 {
130-
thread.SetParallelism(b.parallelism)
131-
}
132-
133124
var cancel context.CancelFunc
134125
if !b.profile && b.timeout != 0 {
135126
ctx, cancel = context.WithTimeout(ctx, b.timeout)

0 commit comments

Comments
 (0)