From 2cbe8fd707ae824ef805af4223a04d6d29220b91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Tue, 28 Jul 2020 16:37:29 +0200 Subject: [PATCH] gofmt --- cmd/lotus-chainwatch/processor/reward.go | 2 +- metrics/metrics.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/lotus-chainwatch/processor/reward.go b/cmd/lotus-chainwatch/processor/reward.go index 19c34fa61..3d5eaa7b4 100644 --- a/cmd/lotus-chainwatch/processor/reward.go +++ b/cmd/lotus-chainwatch/processor/reward.go @@ -108,7 +108,7 @@ func (p *Processor) processRewardActors(ctx context.Context, rewardTips ActorTip } for _, tsKey := range nullRounds { var rw rewardActorInfo - tipset , err := p.node.ChainGetTipSet(ctx, tsKey) + tipset, err := p.node.ChainGetTipSet(ctx, tsKey) if err != nil { return nil, err } diff --git a/metrics/metrics.go b/metrics/metrics.go index 5ed34a620..f60e809e8 100644 --- a/metrics/metrics.go +++ b/metrics/metrics.go @@ -105,10 +105,10 @@ var DefaultViews = append([]*view.View{ MessageValidationFailureView, MessageValidationSuccessView, PeerCountView, - }, +}, rpcmetrics.DefaultViews...) // SinceInMilliseconds returns the duration of time since the provide time as a float64. func SinceInMilliseconds(startTime time.Time) float64 { return float64(time.Since(startTime).Nanoseconds()) / 1e6 -} \ No newline at end of file +}