Lint
This commit is contained in:
parent
6a07def34a
commit
482c90412d
@ -212,8 +212,9 @@ var minerDeadlinePartitionMeasurementCmd = &cli.Command{
|
|||||||
}
|
}
|
||||||
var sectorsBf bitfield.BitField
|
var sectorsBf bitfield.BitField
|
||||||
var accumulator []uint64
|
var accumulator []uint64
|
||||||
|
h := ref.Height
|
||||||
if err := expiryQArray.ForEach(§orsBf, func(i int64) error {
|
if err := expiryQArray.ForEach(§orsBf, func(i int64) error {
|
||||||
if abi.ChainEpoch(i) > ref.Height {
|
if abi.ChainEpoch(i) > h {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
sns, err := sectorsBf.All(abi.MaxSectorNumber)
|
sns, err := sectorsBf.All(abi.MaxSectorNumber)
|
||||||
@ -261,7 +262,9 @@ var minerDeadlinePartitionMeasurementCmd = &cli.Command{
|
|||||||
}
|
}
|
||||||
|
|
||||||
// output partition info
|
// output partition info
|
||||||
json.NewEncoder(os.Stdout).Encode(dSummaries)
|
if err := json.NewEncoder(os.Stdout).Encode(dSummaries); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user