used gofmt with -s flag on whole project

This commit is contained in:
tegk
2019-11-01 15:07:53 +00:00
parent 0aa01b2ebf
commit f88518d994
26 changed files with 65 additions and 65 deletions

View File

@@ -113,7 +113,7 @@ func (p *Proxy) ServeRequest(ctx context.Context, req server.Request, rsp server
// set response headers
hdr = map[string]string{}
for k, _ := range hrsp.Header {
for k := range hrsp.Header {
hdr[k] = hrsp.Header.Get(k)
}
// write the header

View File

@@ -228,7 +228,7 @@ func (p *Proxy) refreshMetrics() {
// get a list of services to update
p.RLock()
for service, _ := range p.Routes {
for service := range p.Routes {
services = append(services, service)
}
p.RUnlock()