This commit is contained in:
Michael Yang 2024-01-29 17:01:31 -08:00
parent bea007deb7
commit 6a4b994433
2 changed files with 5 additions and 8 deletions

View file

@ -172,7 +172,7 @@ func (b *blobUpload) Run(ctx context.Context, opts *registryOptions) {
select {
case <-inner.Done():
case requestURL := <-b.nextURL:
g.Go(func() error {
g.Go(inner, func() error {
var err error
for try := 0; try < maxRetries; try++ {
err = b.uploadPart(inner, http.MethodPatch, requestURL, part, opts)