mirror of
https://github.com/crazybber/awesome-patterns.git
synced 2024-11-22 04:36:02 +03:00
[fanout] Remove defect
This commit is contained in:
parent
1d5fba6f6f
commit
4655d25d08
@ -30,8 +30,8 @@ func (p *Pipeline) Start() {
|
||||
if expectationWorkers > MaxWorkers {
|
||||
expectationWorkers = expectationWorkers % MaxWorkers
|
||||
}
|
||||
for index, c := range pipe.workers {
|
||||
if expectationWorkers < index {
|
||||
for _, c := range pipe.workers {
|
||||
if expectationWorkers < int(c.index) {
|
||||
break
|
||||
}
|
||||
select {
|
||||
|
Loading…
Reference in New Issue
Block a user