Skip to content

Commit cd60ebc

Browse files
authored
feature/s3/manager: Fix typo in Downloader (#1304)
`DefaultPartBodyMaxRetries` and `PartBodyMaxRetries` comment should refer to "download" instead of "upload". Signed-off-by: Eng Zer Jun <[email protected]>
1 parent 1d868df commit cd60ebc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

feature/s3/manager/download.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const DefaultDownloadPartSize = 1024 * 1024 * 5
2727
// when using Download().
2828
const DefaultDownloadConcurrency = 5
2929

30-
// DefaultPartBodyMaxRetries is the default number of retries to make when a part fails to upload.
30+
// DefaultPartBodyMaxRetries is the default number of retries to make when a part fails to download.
3131
const DefaultPartBodyMaxRetries = 3
3232

3333
type errReadingBody struct {
@@ -53,7 +53,7 @@ type Downloader struct {
5353
// PartSize is ignored if the Range input parameter is provided.
5454
PartSize int64
5555

56-
// PartBodyMaxRetries is the number of retry attempts to make for failed part uploads
56+
// PartBodyMaxRetries is the number of retry attempts to make for failed part downloads.
5757
PartBodyMaxRetries int
5858

5959
// Logger to send logging messages to

0 commit comments

Comments
 (0)