fix mock
This commit is contained in:
parent
16166504f4
commit
e4e60d7af4
4
extern/sector-storage/mock/mock.go
vendored
4
extern/sector-storage/mock/mock.go
vendored
@ -119,6 +119,10 @@ func (mgr *SectorMgr) AcquireSectorNumber() (abi.SectorNumber, error) {
|
|||||||
return id, nil
|
return id, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (mgr *SectorMgr) IsUnsealed(ctx context.Context, sector storage.SectorRef, offset storiface.UnpaddedByteIndex, size abi.UnpaddedPieceSize) (bool, error) {
|
||||||
|
return false, nil
|
||||||
|
}
|
||||||
|
|
||||||
func (mgr *SectorMgr) ForceState(sid storage.SectorRef, st int) error {
|
func (mgr *SectorMgr) ForceState(sid storage.SectorRef, st int) error {
|
||||||
mgr.lk.Lock()
|
mgr.lk.Lock()
|
||||||
ss, ok := mgr.sectors[sid.ID]
|
ss, ok := mgr.sectors[sid.ID]
|
||||||
|
Loading…
Reference in New Issue
Block a user