Merge pull request #14 from philipcristiano/healcheck

consul: healcheck -> healthcheck
This commit is contained in:
mayuresh82
2022-04-25 11:29:15 -07:00
committed by GitHub

View File

@@ -146,7 +146,7 @@ func (c *ConsulMon) healthCheckLocal(service string) (bool, error) {
return false, nil
}
}
return false, fmt.Errorf("No local healcheck info found for service %s on node %s in consul", service, c.node)
return false, fmt.Errorf("No local healthcheck info found for service %s on node %s in consul", service, c.node)
}
// healthCheckRemote queries the consul cluster's healthcheck endpoint to perform service healthchecks
@@ -174,7 +174,7 @@ func (c *ConsulMon) healthCheckRemote(service string) (bool, error) {
return false, nil
}
}
return false, fmt.Errorf("No healcheck info found for node %s in consul", c.node)
return false, fmt.Errorf("No healthcheck info found for node %s in consul", c.node)
}
// healthCheck determines if we should use the local agent