Skip to content

Commit

Permalink
Merge pull request #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 Jan 5, 2021
2 parents 61b7b86 + f6cf27c commit 44a56c7
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 44a56c7

Please sign in to comment.