Skip to content

Commit 5a7d642

Browse files
committed
fix: only attempt recovery if in storage not found
1 parent e67ab66 commit 5a7d642

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/file/redundancy/getter/redecoder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func (rd *ReDecoder) Get(ctx context.Context, addr swarm.Address) (swarm.Chunk,
4646
}
4747

4848
// Only attempt recovery if the chunk was not found
49-
if errors.Is(err, storage.ErrNotFound) {
49+
if !errors.Is(err, storage.ErrNotFound) {
5050
return nil, err
5151
}
5252

0 commit comments

Comments
 (0)