Skip to content

Commit

Permalink
Fixed LeaderElector interface
Browse files Browse the repository at this point in the history
  • Loading branch information
thrawn01 committed May 15, 2019
1 parent 266ed3d commit 169e3bb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions etcdutil/election.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ import (
)

type LeaderElector interface {
Start(context.Context) error
LeaderChan() chan bool
IsLeader() bool
Concede() bool
Stop()
Concede() (bool, error)
Close()
}

var _ LeaderElector = &Election{}

type Event struct {
// True if our candidate is leader
IsLeader bool
Expand Down

0 comments on commit 169e3bb

Please sign in to comment.