Skip to content

Commit

Permalink
Merge pull request filecoin-project#5208 from jsign/jsign/imprreadpiece
Browse files Browse the repository at this point in the history
sector-storage/mock: improve mocked readpiece
  • Loading branch information
magik6k authored and bibibong committed Jan 9, 2021
1 parent 4528641 commit dfca87b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extern/sector-storage/mock/mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ func generateFakePoSt(sectorInfo []proof2.SectorInfo, rpt func(abi.RegisteredSea
}

func (mgr *SectorMgr) ReadPiece(ctx context.Context, w io.Writer, sectorID storage.SectorRef, offset storiface.UnpaddedByteIndex, size abi.UnpaddedPieceSize, randomness abi.SealRandomness, c cid.Cid) error {
if len(mgr.sectors[sectorID.ID].pieces) > 1 || offset != 0 {
if offset != 0 {
panic("implme")
}

Expand Down

0 comments on commit dfca87b

Please sign in to comment.