storage: Use fatal instead of .to.error

This commit is contained in:
Łukasz Magiera 2019-12-09 21:19:46 +01:00 committed by GitHub
parent d2448912a6
commit 2f2a5824b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -245,7 +245,7 @@ func (m *Miner) handleFaulty(ctx context.Context, sector SectorInfo) *sectorUpda
_ = fp
enc, aerr := actors.SerializeParams(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{