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

Fix off by one error in fetch #66

Merged
merged 1 commit into from
Mar 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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