Fix comment to reflect reality

This commit is contained in:
Michael Schurter 2017-04-12 13:27:56 -07:00
parent 745ad9521f
commit 7c8ad71da5
1 changed files with 2 additions and 2 deletions

View File

@ -640,8 +640,8 @@ func createCheckID(serviceID string, check *structs.ServiceCheck) string {
// createCheckReg creates a Check that can be registered with Consul.
//
// Only supports HTTP(S) and TCP checks. Script checks must be handled
// externally.
// Script checks simply have a TTL set and the caller is responsible for
// running the script and heartbeating.
func createCheckReg(serviceID, checkID string, check *structs.ServiceCheck, host string, port int) (*api.AgentCheckRegistration, error) {
chkReg := api.AgentCheckRegistration{
ID: checkID,