mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 08:44:17 -04:00
cleanup: go vet and golint run (#736)
* cleanup: go vet and golint run Various cleanups trickered by go vet and golint. * Fix tests and lowercase all errors Lowercase all errors, some tests in kubernetes use errors from kubernetes which do start with a capital letter.
This commit is contained in:
@@ -7,11 +7,12 @@ import (
|
||||
"sync/atomic"
|
||||
|
||||
"github.com/coredns/coredns/middleware"
|
||||
// Plugin the trace package.
|
||||
_ "github.com/coredns/coredns/middleware/pkg/trace"
|
||||
|
||||
"github.com/miekg/dns"
|
||||
ot "github.com/opentracing/opentracing-go"
|
||||
zipkin "github.com/openzipkin/zipkin-go-opentracing"
|
||||
|
||||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
@@ -40,7 +41,7 @@ func (t *trace) OnStartup() error {
|
||||
case "zipkin":
|
||||
err = t.setupZipkin()
|
||||
default:
|
||||
err = fmt.Errorf("Unknown endpoint type: %s", t.EndpointType)
|
||||
err = fmt.Errorf("unknown endpoint type: %s", t.EndpointType)
|
||||
}
|
||||
})
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user