Skip to content

Commit

Permalink
Merge pull request #39 from thrawn01/thrawn/develop
Browse files Browse the repository at this point in the history
Added LeaderChan() to election interface
  • Loading branch information
thrawn01 authored Dec 6, 2018
2 parents c19d244 + 799fe48 commit 7fa63ca
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions etcdutil/election.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,8 @@ func (e *Election) notifyLeaderChange(set bool) {

type LeaderElectionMock struct{}

func (s *LeaderElectionMock) IsLeader() bool { return true }
func (s *LeaderElectionMock) Concede() bool { return true }
func (s *LeaderElectionMock) Start() error { return nil }
func (s *LeaderElectionMock) Stop() {}
func (s *LeaderElectionMock) IsLeader() bool { return true }
func (s *LeaderElectionMock) LeaderChan() chan bool { return nil }
func (s *LeaderElectionMock) Concede() bool { return true }
func (s *LeaderElectionMock) Start() error { return nil }
func (s *LeaderElectionMock) Stop() {}

0 comments on commit 7fa63ca

Please sign in to comment.