Commit bf479f9a authored by John Belamaric's avatar John Belamaric Committed by Miek Gieben

gofmt some stuff (#1769)

parent be8fcc48
...@@ -55,11 +55,10 @@ func (r *roundRobin) List(p []*Proxy) []*Proxy { ...@@ -55,11 +55,10 @@ func (r *roundRobin) List(p []*Proxy) []*Proxy {
} }
// sequential is a policy that selects hosts based on sequential ordering. // 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) String() string { return "sequential" }
func (r *sequential) List(p []*Proxy) []*Proxy { func (r *sequential) List(p []*Proxy) []*Proxy {
return p return p
} }
...@@ -29,8 +29,8 @@ func init() { ...@@ -29,8 +29,8 @@ func init() {
RegisterPolicy("least_conn", func() Policy { return &LeastConn{} }) RegisterPolicy("least_conn", func() Policy { return &LeastConn{} })
RegisterPolicy("round_robin", func() Policy { return &RoundRobin{} }) RegisterPolicy("round_robin", func() Policy { return &RoundRobin{} })
RegisterPolicy("first", func() Policy { return &First{} }) RegisterPolicy("first", func() Policy { return &First{} })
// 'sequential' is an alias to 'first' to maintain consistency with the forward plugin // 'sequential' is an alias to 'first' to maintain consistency with the forward plugin
// should probably remove 'first' in a future release // should probably remove 'first' in a future release
RegisterPolicy("sequential", func() Policy { return &First{} }) RegisterPolicy("sequential", func() Policy { return &First{} })
} }
......
...@@ -14,8 +14,8 @@ func TestTLS(t *testing.T) { ...@@ -14,8 +14,8 @@ func TestTLS(t *testing.T) {
expectedRoot string // expected root, set to the controller. Empty for negative cases. expectedRoot string // expected root, set to the controller. Empty for negative cases.
expectedErrContent string // substring from the expected error. Empty for positive cases. expectedErrContent string // substring from the expected error. Empty for positive cases.
}{ }{
// positive // positive
// negative // negative
} }
for i, test := range tests { for i, test := range tests {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment