diff --git a/processor.go b/processor.go index 803c269..125e80f 100644 --- a/processor.go +++ b/processor.go @@ -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) } } diff --git a/servemux.go b/servemux.go index 2142ef6..4ccd6f6 100644 --- a/servemux.go +++ b/servemux.go @@ -15,7 +15,7 @@ import ( // ServeMux is a multiplexer for asynchronous tasks. // 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 -// taks's type name. +// task's type name. // // Longer patterns take precedence over shorter ones, so that if there are // handlers registered for both "images" and "images:thumbnails",