diff options
author | 2016-10-12 12:46:35 +0100 | |
---|---|---|
committer | 2016-10-12 12:46:35 +0100 | |
commit | aa7744dc86455c89a2c8396b5ada71134064822d (patch) | |
tree | 1d5fb4b959ce41c17afca0bda4da66328a023d64 /middleware/proxy/lookup.go | |
parent | 710c9b111f31b9d5f0b280739420b31c95adf14b (diff) | |
download | coredns-aa7744dc86455c89a2c8396b5ada71134064822d.tar.gz coredns-aa7744dc86455c89a2c8396b5ada71134064822d.tar.zst coredns-aa7744dc86455c89a2c8396b5ada71134064822d.zip |
cleanups: go vet/golint (#331)
Go vet and golint the new code once again.
Drop Name from NameTemplate - it's cleaner: nametemplate.Template.
Diffstat (limited to 'middleware/proxy/lookup.go')
-rw-r--r-- | middleware/proxy/lookup.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/middleware/proxy/lookup.go b/middleware/proxy/lookup.go index af39bc12b..549dfa0c7 100644 --- a/middleware/proxy/lookup.go +++ b/middleware/proxy/lookup.go @@ -13,7 +13,7 @@ import ( // New create a new proxy with the hosts in host and a Random policy. func New(hosts []string) Proxy { - p := Proxy{Next: nil, Client: NewClient()} + p := Proxy{Next: nil, Client: newClient()} upstream := &staticUpstream{ from: "", |