remove typo and redundant code

This commit is contained in:
lihe
2020-05-22 16:09:04 +08:00
committed by Ken Hibino
parent 4492ed9255
commit 39188fe930
2 changed files with 2 additions and 2 deletions

View File

@@ -310,7 +310,7 @@ func (p *processor) queues() []string {
}
var names []string
for qname, priority := range p.queueConfig {
for i := 0; i < int(priority); i++ {
for i := 0; i < priority; i++ {
names = append(names, qname)
}
}