From 799fe482580b0e9b90b9cbb6bd2153c026ec7b33 Mon Sep 17 00:00:00 2001 From: "Derrick J. Wippler" Date: Thu, 6 Dec 2018 14:48:58 -0600 Subject: [PATCH] Added LeaderChan() to election interface --- etcdutil/election.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/etcdutil/election.go b/etcdutil/election.go index e8b2d6f2..26b266bc 100644 --- a/etcdutil/election.go +++ b/etcdutil/election.go @@ -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() {}