fix: storage manager - dont fail on successful read piece
This commit is contained in:
parent
07a4553e6e
commit
a97f978cad
2
extern/sector-storage/manager.go
vendored
2
extern/sector-storage/manager.go
vendored
@ -273,7 +273,7 @@ func (m *Manager) ReadPiece(ctx context.Context, sink io.Writer, sector abi.Sect
|
||||
return xerrors.Errorf("reading piece from sealed sector: %w", err)
|
||||
}
|
||||
|
||||
if readOk {
|
||||
if !readOk {
|
||||
return xerrors.Errorf("failed to read unsealed piece")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user