gofmt
This commit is contained in:
parent
b049c5a7d1
commit
d16de56280
@ -328,11 +328,11 @@ func createSectorsAMT(ctx context.Context, t *testing.T, store *cbornode.BasicIp
|
|||||||
func newSectorOnChainInfo(sectorNo abi.SectorNumber, sealed cid.Cid, weight big.Int, activation, expiration abi.ChainEpoch) miner.SectorOnChainInfo {
|
func newSectorOnChainInfo(sectorNo abi.SectorNumber, sealed cid.Cid, weight big.Int, activation, expiration abi.ChainEpoch) miner.SectorOnChainInfo {
|
||||||
info := newSectorPreCommitInfo(sectorNo, sealed, expiration)
|
info := newSectorPreCommitInfo(sectorNo, sealed, expiration)
|
||||||
return miner.SectorOnChainInfo{
|
return miner.SectorOnChainInfo{
|
||||||
SectorNumber: info.SectorNumber,
|
SectorNumber: info.SectorNumber,
|
||||||
SealProof: info.SealProof,
|
SealProof: info.SealProof,
|
||||||
SealedCID: info.SealedCID,
|
SealedCID: info.SealedCID,
|
||||||
DealIDs: info.DealIDs,
|
DealIDs: info.DealIDs,
|
||||||
Expiration: info.Expiration,
|
Expiration: info.Expiration,
|
||||||
|
|
||||||
Activation: activation,
|
Activation: activation,
|
||||||
DealWeight: weight,
|
DealWeight: weight,
|
||||||
|
@ -150,16 +150,16 @@ func (s *WindowPoStScheduler) checkNextRecoveries(ctx context.Context, deadline
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return xerrors.Errorf("checking unrecovered sectors: %w", err)
|
return xerrors.Errorf("checking unrecovered sectors: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// if all sectors failed to recover, don't declare recoveries
|
// if all sectors failed to recover, don't declare recoveries
|
||||||
sbfCount, err := sbf.Count()
|
sbfCount, err := sbf.Count()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return xerrors.Errorf("counting recovered sectors: %w", err)
|
return xerrors.Errorf("counting recovered sectors: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if sbfCount == 0 {
|
if sbfCount == 0 {
|
||||||
log.Warnw("No recoveries to declare", "deadline", deadline, "faulty", uc)
|
log.Warnw("No recoveries to declare", "deadline", deadline, "faulty", uc)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
params := &miner.DeclareFaultsRecoveredParams{
|
params := &miner.DeclareFaultsRecoveredParams{
|
||||||
|
Loading…
Reference in New Issue
Block a user