gofmt some stuff (#1769)

This commit is contained in:
John Belamaric
2018-05-04 16:45:58 -04:00
committed by Miek Gieben
parent be8fcc484a
commit bf479f9ac2
3 changed files with 5 additions and 6 deletions

View File

@@ -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
}

View File

@@ -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{} })
}

View File

@@ -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 {