upstream health check config (#1796)

This commit is contained in:
wasaga 2021-01-21 15:23:06 -05:00 committed by GitHub
parent c90eda5622
commit 4017e0681a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 134 additions and 11 deletions

View file

@ -399,7 +399,8 @@ func (o *Options) parsePolicy() error {
}
// Finish initializing policies
for i := range o.Policies {
if err := (&o.Policies[i]).Validate(); err != nil {
p := &o.Policies[i]
if err := p.Validate(); err != nil {
return err
}
}