2
0
mirror of https://github.com/hibiken/asynq.git synced 2024-09-20 11:05:58 +08:00

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 var names []string
for qname, priority := range p.queueConfig { for qname, priority := range p.queueConfig {
for i := 0; i < int(priority); i++ { for i := 0; i < priority; i++ {
names = append(names, qname) names = append(names, qname)
} }
} }

View File

@ -15,7 +15,7 @@ import (
// ServeMux is a multiplexer for asynchronous tasks. // ServeMux is a multiplexer for asynchronous tasks.
// It matches the type of each task against a list of registered patterns // It matches the type of each task against a list of registered patterns
// and calls the handler for the pattern that most closely matches the // and calls the handler for the pattern that most closely matches the
// taks's type name. // task's type name.
// //
// Longer patterns take precedence over shorter ones, so that if there are // Longer patterns take precedence over shorter ones, so that if there are
// handlers registered for both "images" and "images:thumbnails", // handlers registered for both "images" and "images:thumbnails",