[fanout] Remove defect

This commit is contained in:
paulaan 2019-05-02 17:40:57 +07:00
parent 1d5fba6f6f
commit 4655d25d08

View File

@ -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 {