storage: Use fatal instead of .to.error
This commit is contained in:
parent
d2448912a6
commit
2f2a5824b3
@ -245,7 +245,7 @@ func (m *Miner) handleFaulty(ctx context.Context, sector SectorInfo) *sectorUpda
|
|||||||
_ = fp
|
_ = fp
|
||||||
enc, aerr := actors.SerializeParams(nil)
|
enc, aerr := actors.SerializeParams(nil)
|
||||||
if aerr != nil {
|
if aerr != nil {
|
||||||
return sector.upd().to(api.FailedUnrecoverable).error(xerrors.Errorf("failed to serialize declare fault params: %w", aerr))
|
return sector.upd().fatal(xerrors.Errorf("failed to serialize declare fault params: %w", aerr))
|
||||||
}
|
}
|
||||||
|
|
||||||
msg := &types.Message{
|
msg := &types.Message{
|
||||||
|
Loading…
Reference in New Issue
Block a user