From ef0353bb7db512f1875de21c28b8bc14da764136 Mon Sep 17 00:00:00 2001 From: William Banfield Date: Thu, 17 Feb 2022 18:57:45 -0500 Subject: [PATCH] lint++ --- internal/consensus/metrics.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/consensus/metrics.go b/internal/consensus/metrics.go index 68c45900d..6dee84d9c 100644 --- a/internal/consensus/metrics.go +++ b/internal/consensus/metrics.go @@ -333,18 +333,18 @@ func (m *Metrics) MarkBlockGossipStarted() { } func (m *Metrics) MarkBlockGossipComplete() { - m.BlockGossipReceiveLatency.Observe(float64(time.Now().Sub(m.blockGossipStart).Seconds())) + m.BlockGossipReceiveLatency.Observe(time.Now().Sub(m.blockGossipStart).Seconds()) } func (m *Metrics) MarkRound(r int32, st time.Time) { m.Rounds.Set(float64(r)) - roundTime := float64(time.Now().Sub(st).Seconds()) + roundTime := time.Now().Sub(st).Seconds() m.RoundDuration.Observe(roundTime) } func (m *Metrics) MarkStep(s cstypes.RoundStepType) { if !m.stepStart.IsZero() { - stepTime := float64(time.Now().Sub(m.stepStart).Seconds()) + stepTime := time.Now().Sub(m.stepStart).Seconds() stepName := strings.TrimPrefix(s.String(), "RoundStep") m.StepDuration.With("step", stepName).Observe(stepTime) }