From 4d0230dd956c075c2c686bd9d964862dea16e858 Mon Sep 17 00:00:00 2001 From: Aarsh Shah Date: Wed, 8 Mar 2023 09:39:57 +0400 Subject: [PATCH] fix off by one --- pool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pool.go b/pool.go index 7e92ba0..3fe2129 100644 --- a/pool.go +++ b/pool.go @@ -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 {