fix: storage manager - dont fail on successful read piece

This commit is contained in:
Dirk McCormick 2020-09-07 16:14:19 +02:00
parent 07a4553e6e
commit a97f978cad

View File

@ -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")
}