Skip to content

Commit d3f877a

Browse files
committed
ignore deprecation warning for now
1 parent e4d36cc commit d3f877a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

s3/client/aws_s3_blobstore.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ type awsS3Client struct {
4141
func (b *awsS3Client) Get(src string, dest io.WriterAt) error {
4242
cfg := b.s3cliConfig
4343

44-
downloader := manager.NewDownloader(b.s3Client, func(d *manager.Downloader) {
44+
downloader := manager.NewDownloader(b.s3Client, func(d *manager.Downloader) { //nolint:staticcheck
4545
d.Concurrency = defaultTransferConcurrency
4646
if cfg.DownloadConcurrency > 0 {
4747
d.Concurrency = cfg.DownloadConcurrency
@@ -53,7 +53,7 @@ func (b *awsS3Client) Get(src string, dest io.WriterAt) error {
5353
}
5454
})
5555

56-
_, err := downloader.Download(context.TODO(), dest, &s3.GetObjectInput{
56+
_, err := downloader.Download(context.TODO(), dest, &s3.GetObjectInput{ //nolint:staticcheck
5757
Bucket: aws.String(b.s3cliConfig.BucketName),
5858
Key: b.key(src),
5959
})
@@ -72,7 +72,7 @@ func (b *awsS3Client) Put(src io.ReadSeeker, dest string) error {
7272
return errorInvalidCredentialsSourceValue
7373
}
7474

75-
uploader := manager.NewUploader(b.s3Client, func(u *manager.Uploader) {
75+
uploader := manager.NewUploader(b.s3Client, func(u *manager.Uploader) { //nolint:staticcheck
7676
u.LeavePartsOnError = false
7777

7878
u.Concurrency = defaultTransferConcurrency
@@ -114,7 +114,7 @@ func (b *awsS3Client) Put(src io.ReadSeeker, dest string) error {
114114
retry := 0
115115
maxRetries := 3
116116
for {
117-
putResult, err := uploader.Upload(context.TODO(), uploadInput)
117+
putResult, err := uploader.Upload(context.TODO(), uploadInput) //nolint:staticcheck
118118
if err != nil {
119119
if _, ok := err.(manager.MultiUploadFailure); ok {
120120
if retry == maxRetries {

0 commit comments

Comments
 (0)