Merge pull request #8180 from filecoin-project/jennijuju-patch-2

fix: sealing: missing file type
This commit is contained in:
Jiaying Wang 2022-02-24 17:41:48 -05:00 committed by GitHub
commit 3621d8675f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -294,6 +294,10 @@ func ftFromString(t string) (storiface.SectorFileType, error) {
return storiface.FTSealed, nil return storiface.FTSealed, nil
case storiface.FTCache.String(): case storiface.FTCache.String():
return storiface.FTCache, nil return storiface.FTCache, nil
case storiface.FTUpdate.String():
return storiface.FTUpdate, nil
case storiface.FTUpdateCache.String():
return storiface.FTUpdateCache, nil
default: default:
return 0, xerrors.Errorf("unknown sector file type: '%s'", t) return 0, xerrors.Errorf("unknown sector file type: '%s'", t)
} }