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 { for _, tsKey := range nullRounds {
var rw rewardActorInfo var rw rewardActorInfo
tipset , err := p.node.ChainGetTipSet(ctx, tsKey) tipset, err := p.node.ChainGetTipSet(ctx, tsKey)
if err != nil { if err != nil {
return nil, err return nil, err
} }

View File

@ -105,10 +105,10 @@ var DefaultViews = append([]*view.View{
MessageValidationFailureView, MessageValidationFailureView,
MessageValidationSuccessView, MessageValidationSuccessView,
PeerCountView, PeerCountView,
}, },
rpcmetrics.DefaultViews...) rpcmetrics.DefaultViews...)
// SinceInMilliseconds returns the duration of time since the provide time as a float64. // SinceInMilliseconds returns the duration of time since the provide time as a float64.
func SinceInMilliseconds(startTime time.Time) float64 { func SinceInMilliseconds(startTime time.Time) float64 {
return float64(time.Since(startTime).Nanoseconds()) / 1e6 return float64(time.Since(startTime).Nanoseconds()) / 1e6
} }