~edwargix/tallyard

88de616fea54a3762e5f2e23abd894a2e72ba17b — David Florness 5 years ago 47e4d26
Better error msg
1 files changed, 1 insertions(+), 1 deletions(-)

M voter.go
M voter.go => voter.go +1 -1
@@ 218,7 218,7 @@ func findPeers(closeElection <-chan int) {

func (voter *Voter) fetchNumber(cmd string, args ...string) *big.Int {
	printErr := func(err error, msg string) {
		logger.Errorf("%s: %s during `%s'; retrying in 2 seconds",
		logger.Errorf("%s: %s fetcing `%s'; retrying in 2 seconds",
			voter.addrInfo.ID, msg, cmd)
		time.Sleep(time.Second * 2)
	}