Fix amt.ErrNotFound handling in actor_miner

This commit is contained in:
Łukasz Magiera 2019-09-09 13:22:09 +02:00
parent 3d8e5cf0fb
commit a1bcc826ac

View File

@ -382,7 +382,7 @@ func GetFromSectorSet(ctx context.Context, s types.Storage, ss cid.Cid, sectorID
var comms [][]byte
err = ssr.Get(sectorID, &comms)
if err != nil {
if _, ok := err.(amt.ErrNotFound); ok {
if _, ok := err.(*amt.ErrNotFound); ok {
return false, nil, nil, nil
}
return false, nil, nil, aerrors.Escalate(err, "failed to find sector in sector set")