We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7df52f5 commit 6766161Copy full SHA for 6766161
worker/worker.go
@@ -62,7 +62,7 @@ func (w *Worker) processInfinity(ctx context.Context) {
62
return
63
}
64
65
- parallel := parallel.NewParallel(ctx, w.parallelism)
+ parallel := parallel.NewParallel(ctx, atomic.LoadInt32(&w.parallelism))
66
defer parallel.Close()
67
w.mu.Lock()
68
w.parallel = parallel
@@ -90,7 +90,7 @@ func (w *Worker) processLimited(ctx context.Context, limit int) {
90
91
92
93
94
95
96
0 commit comments