gofmt
This commit is contained in:
parent
8c95821e9c
commit
2cbe8fd707
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user