Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #66 from filecoin-saturn/fix/off-by-one
Browse files Browse the repository at this point in the history
Fix off by one error in fetch
  • Loading branch information
aarshkshah1992 authored Mar 8, 2023
2 parents 1cb25ea + 4d0230d commit 17d3c38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ func (p *pool) fetchResourceWith(ctx context.Context, path string, cb DataCallba
// of permanent vs temporary errors is.

// for now: reset i on partials so we also give them a chance to retry.
i = 0
i = -1
}
} else if errors.As(err, &epr) {
if len(epr.StillNeed) == 0 {
Expand Down

0 comments on commit 17d3c38

Please sign in to comment.