File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -55,10 +55,10 @@ func WithSequentialParallelism() RunnerOption {
5555// This is a concurrency rate-limiter for when the number of tasks
5656// can be high. At any point, there are at most `max`
5757// task (goroutines) running concurrently.
58- func WithMaxParallelism (max int ) RunnerOption {
58+ func WithMaxParallelism (mx int ) RunnerOption {
5959 var permit Permits = noopPermit {}
60- if max >= 1 {
61- permit = newSemaphorePermit (max )
60+ if mx >= 1 {
61+ permit = newSemaphorePermit (mx )
6262 }
6363 return runnerOptionFunc (func (r * taskRunner ) {
6464 r .permits = permit
Original file line number Diff line number Diff line change @@ -52,12 +52,12 @@ func WithSchedulerPoolSize(size int) SchedulerOption {
5252 })
5353}
5454
55- func WithSchedulerMaxPoolSize (max int ) SchedulerOption {
56- if max < 1 {
55+ func WithSchedulerMaxPoolSize (mx int ) SchedulerOption {
56+ if mx < 1 {
5757 panic ("Max pool size cannot be < 1" )
5858 }
5959 return schedulerOptionFunc (func (s * schedulerImpl ) {
60- s .maxPoolSize = max
60+ s .maxPoolSize = mx
6161 })
6262}
6363
You can’t perform that action at this time.
0 commit comments