From e4e60d7af41c7a856d818c3a03c7013b49752aa3 Mon Sep 17 00:00:00 2001 From: aarshkshah1992 Date: Tue, 8 Jun 2021 09:37:12 +0530 Subject: [PATCH] fix mock --- extern/sector-storage/mock/mock.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extern/sector-storage/mock/mock.go b/extern/sector-storage/mock/mock.go index 1d8a317f1..40db3999f 100644 --- a/extern/sector-storage/mock/mock.go +++ b/extern/sector-storage/mock/mock.go @@ -119,6 +119,10 @@ func (mgr *SectorMgr) AcquireSectorNumber() (abi.SectorNumber, error) { 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 { mgr.lk.Lock() ss, ok := mgr.sectors[sid.ID]