From 67da789ba30043d9da696ad49faff14b161b94dd Mon Sep 17 00:00:00 2001 From: Itamar Yuran Date: Thu, 26 Dec 2024 18:25:29 +0100 Subject: [PATCH] smol change --- esti/multipart_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esti/multipart_test.go b/esti/multipart_test.go index e96d5af06d2..645235d060d 100644 --- a/esti/multipart_test.go +++ b/esti/multipart_test.go @@ -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) @@ -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()