This commit is contained in:
Łukasz Magiera 2020-05-26 10:25:29 +02:00
parent 793d332002
commit 6fe92ff13c
4 changed files with 11 additions and 10 deletions

View File

@ -193,7 +193,7 @@ func (l *LocalWorker) UnsealPiece(ctx context.Context, sector abi.SectorID, inde
return xerrors.Errorf("unsealing sector: %w", err)
}
if err := l.storage.RemoveCopies(ctx, sector, stores.FTSealed | stores.FTCache); err != nil {
if err := l.storage.RemoveCopies(ctx, sector, stores.FTSealed|stores.FTCache); err != nil {
return xerrors.Errorf("removing source data: %w", err)
}

View File

@ -10,12 +10,14 @@ import (
)
type PathType bool
const (
PathStorage = false
PathSealing = true
)
type AcquireMode string
const (
AcquireMove = "move"
AcquireCopy = "copy"

View File

@ -63,7 +63,6 @@ func (t *TestingLocalStorage) init(subpath string) error {
return nil
}
var _ LocalStorage = &TestingLocalStorage{}
func TestLocalStorage(t *testing.T) {