From 39188fe9301217d5f52d13bac70756b001c9a530 Mon Sep 17 00:00:00 2001 From: lihe Date: Fri, 22 May 2020 16:09:04 +0800 Subject: [PATCH] remove typo and redundant code --- processor.go | 2 +- servemux.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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",