Skip to content

Commit

Permalink
Unused code wasn't as unused as I thought. Restore.
Browse files Browse the repository at this point in the history
  • Loading branch information
sean- committed May 28, 2016
1 parent d79621b commit 4d065be
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client/consul/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,12 @@ func (c *Syncer) filterConsulChecks(chks map[string]*consul.AgentCheck) map[stri
return nomadChecks
}

// consulPresent indicates whether the consul agent is responding
func (c *Syncer) consulPresent() bool {
_, err := c.client.Agent().Self()
return err == nil
}

// runCheck runs a check and updates the corresponding ttl check in consul
func (c *Syncer) runCheck(check Check) {
res := check.Run()
Expand Down

0 comments on commit 4d065be

Please sign in to comment.