Skip to content

Commit

Permalink
Be less explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Castell committed Aug 19, 2015
1 parent 9466493 commit 61eadcf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dkron/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const (
gracefulTimeout = 3 * time.Second
)

// AgentCommand run dkron server
// AgentCommand run server
type AgentCommand struct {
Ui cli.Ui
Version string
Expand Down Expand Up @@ -372,7 +372,7 @@ func (a *AgentCommand) Synopsis() string {
return "Run dkron"
}

// dkron leader election routine
// Leader election routine
func (a *AgentCommand) ElectLeader() bool {
leaderKey := a.etcd.GetLeader()

Expand All @@ -399,14 +399,14 @@ func (a *AgentCommand) ElectLeader() bool {
if err != nil {
log.Error(res, err)
}
log.Printf("Successfully set [%s] as dkron leader", a.config.NodeName)
log.Printf("Successfully set [%s] as leader", a.config.NodeName)
return true
}

return false
}

// Checks if the dkron server member identified by key, is alive.
// Checks if the server member identified by key, is alive.
func (a *AgentCommand) serverAlive(key string) bool {
members := a.serf.Members()
for _, member := range members {
Expand Down

0 comments on commit 61eadcf

Please sign in to comment.