From b14fea32e8c55ea8542d7d6257614b0357b232e0 Mon Sep 17 00:00:00 2001 From: David Florness Date: Tue, 25 Aug 2020 19:33:22 -0400 Subject: [PATCH] Make function a method --- main.go | 2 +- voter.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index b325725..d80ff0f 100644 --- a/main.go +++ b/main.go @@ -225,5 +225,5 @@ func main() { election.SetupSlave() } - startVoting(election) + election.StartVoting() } diff --git a/voter.go b/voter.go index 3675a61..35f3fe1 100644 --- a/voter.go +++ b/voter.go @@ -270,7 +270,7 @@ retry: return new(big.Int).SetBytes(retBytes) } -func startVoting(election *Election) { +func (election *Election) StartVoting() { localVoter := election.localVoter var err error -- 2.38.4