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 {
|
if expectationWorkers > MaxWorkers {
|
||||||
expectationWorkers = expectationWorkers % MaxWorkers
|
expectationWorkers = expectationWorkers % MaxWorkers
|
||||||
}
|
}
|
||||||
for index, c := range pipe.workers {
|
for _, c := range pipe.workers {
|
||||||
if expectationWorkers < index {
|
if expectationWorkers < int(c.index) {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
select {
|
select {
|
||||||
|
Loading…
Reference in New Issue
Block a user