func (le *LeaderEngine) reportLeaderMetric(isLeader bool) {
	// We want to make sure only one (the latest) context is exposed for this metric
	// Delete previous run metric
	le.leaderMetric.Delete(metrics.JoinLeaderValue, "false")
	le.leaderMetric.Delete(metrics.JoinLeaderValue, "true")

	le.leaderMetric.Set(1.0, metrics.JoinLeaderValue, strconv.FormatBool(isLeader))
}
// reportLeaderMetric updates the label of the leader metric on every leadership change
reportLeaderMetric updates the label of the leader metric on every leadership change
// reportLeaderMetric updates the label of the leader metric on every leadership change
func (le *LeaderEngine) reportLeaderMetric(isLeader bool) {
	le.leaderMetric.Delete(metrics.JoinLeaderValue, "false")
	le.leaderMetric.Delete(metrics.JoinLeaderValue, "true")
	le.leaderMetric.Set(1.0, metrics.JoinLeaderValue, strconv.FormatBool(isLeader))
}
func ( le * LeaderEngine ) reportLeaderMetric ( isLeader bool ) { le . leaderMetric . Delete ( metrics . JoinLeaderValue , " " ) le . leaderMetric . Delete ( metrics . JoinLeaderValue , " " ) le . leaderMetric . Set ( 1.0 , metrics . JoinLeaderValue , strconv . FormatBool ( isLeader ) ) }
reportLeaderMetric updates the label of the leader metric on every leadership change
reportLeaderMetric updates the label of the leader metric on every leadership change
// We want to make sure only one (the latest) context is exposed for this metric // Delete previous run metric