Skip to content

Commit

Permalink
smol change
Browse files Browse the repository at this point in the history
  • Loading branch information
ItamarYuran committed Dec 26, 2024
1 parent 8b4d12f commit 67da789
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions esti/multipart_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func reverse(s string) string {
return string(runes)
}

func uploadMultipartParts(t *testing.T, ctx context.Context, client *s3.Client, logger logging.Logger, resp *s3.CreateMultipartUploadOutput, parts [][]byte, firstIndex int) []types.CompletedPart {
func uploadMultipartParts(t *testing.T, ctx context.Context, svc *s3.Client, logger logging.Logger, resp *s3.CreateMultipartUploadOutput, parts [][]byte, firstIndex int) []types.CompletedPart {
count := len(parts)
completedParts := make([]types.CompletedPart, count)
errs := make([]error, count)
Expand All @@ -176,7 +176,7 @@ func uploadMultipartParts(t *testing.T, ctx context.Context, client *s3.Client,
go func(i int) {
defer wg.Done()
partNumber := firstIndex + i + 1
completedParts[i], errs[i] = uploadMultipartPart(ctx, logger, client, resp, parts[i], partNumber)
completedParts[i], errs[i] = uploadMultipartPart(ctx, logger, svc, resp, parts[i], partNumber)
}(i)
}
wg.Wait()
Expand Down

0 comments on commit 67da789

Please sign in to comment.