aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar John Belamaric <jbelamaric@infoblox.com> 2018-05-04 16:45:58 -0400
committerGravatar Miek Gieben <miek@miek.nl> 2018-05-04 22:45:58 +0200
commitbf479f9ac2d72c205580e318270211aadafc7d11 (patch)
treebd14db262363442aee1e3106af96670e469be564
parentbe8fcc484a526e135bbaf1f2a95bece6d1bee761 (diff)
downloadcoredns-bf479f9ac2d72c205580e318270211aadafc7d11.tar.gz
coredns-bf479f9ac2d72c205580e318270211aadafc7d11.tar.zst
coredns-bf479f9ac2d72c205580e318270211aadafc7d11.zip
gofmt some stuff (#1769)
-rw-r--r--plugin/forward/policy.go3
-rw-r--r--plugin/pkg/healthcheck/policy.go4
-rw-r--r--plugin/tls/tls_test.go4
3 files changed, 5 insertions, 6 deletions
diff --git a/plugin/forward/policy.go b/plugin/forward/policy.go
index 1565fef31..2066e1316 100644
--- a/plugin/forward/policy.go
+++ b/plugin/forward/policy.go
@@ -55,11 +55,10 @@ func (r *roundRobin) List(p []*Proxy) []*Proxy {
}
// sequential is a policy that selects hosts based on sequential ordering.
-type sequential struct {}
+type sequential struct{}
func (r *sequential) String() string { return "sequential" }
func (r *sequential) List(p []*Proxy) []*Proxy {
return p
}
-
diff --git a/plugin/pkg/healthcheck/policy.go b/plugin/pkg/healthcheck/policy.go
index caab849fd..beb95e7d5 100644
--- a/plugin/pkg/healthcheck/policy.go
+++ b/plugin/pkg/healthcheck/policy.go
@@ -29,8 +29,8 @@ func init() {
RegisterPolicy("least_conn", func() Policy { return &LeastConn{} })
RegisterPolicy("round_robin", func() Policy { return &RoundRobin{} })
RegisterPolicy("first", func() Policy { return &First{} })
- // 'sequential' is an alias to 'first' to maintain consistency with the forward plugin
- // should probably remove 'first' in a future release
+ // 'sequential' is an alias to 'first' to maintain consistency with the forward plugin
+ // should probably remove 'first' in a future release
RegisterPolicy("sequential", func() Policy { return &First{} })
}
diff --git a/plugin/tls/tls_test.go b/plugin/tls/tls_test.go
index 0bbba18a1..84a74ae3b 100644
--- a/plugin/tls/tls_test.go
+++ b/plugin/tls/tls_test.go
@@ -14,8 +14,8 @@ func TestTLS(t *testing.T) {
expectedRoot string // expected root, set to the controller. Empty for negative cases.
expectedErrContent string // substring from the expected error. Empty for positive cases.
}{
- // positive
- // negative
+ // positive
+ // negative
}
for i, test := range tests {