This commit is contained in:
Łukasz Magiera 2020-07-28 16:37:29 +02:00
parent 8c95821e9c
commit 2cbe8fd707
2 changed files with 3 additions and 3 deletions

View File

@ -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
}

View File

@ -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
}
}