From 169e3bbbb0405d1395e50f4a2cc11a728a8a6d83 Mon Sep 17 00:00:00 2001 From: "Derrick J. Wippler" Date: Wed, 15 May 2019 10:53:13 -0500 Subject: [PATCH] Fixed LeaderElector interface --- etcdutil/election.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/etcdutil/election.go b/etcdutil/election.go index 8b1951a2..088f321b 100644 --- a/etcdutil/election.go +++ b/etcdutil/election.go @@ -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