[fanout] Codereview

This commit is contained in:
paulaan 2019-05-02 17:37:23 +07:00
parent c033afdbea
commit 1d5fba6f6f

View File

@ -30,8 +30,8 @@ func (p *Pipeline) Start() {
if expectationWorkers > MaxWorkers {
expectationWorkers = expectationWorkers % MaxWorkers
}
for _, c := range pipe.workers {
if expectationWorkers < int(c.index) {
for index, c := range pipe.workers {
if expectationWorkers < index {
break
}
select {