diff --git a/aws/awss3/awss3.go b/aws/awss3/awss3.go index 0b8912a..ccbc8fb 100644 --- a/aws/awss3/awss3.go +++ b/aws/awss3/awss3.go @@ -287,7 +287,10 @@ func DownloadFiles(ctx context.Context, region awsconfig.Region, bucketName Buck } uniqKeys := keys.Unique() - downloader := manager.NewDownloader(client) + option := func(d *manager.Downloader) { + d.BufferProvider = manager.NewPooledBufferedWriterReadFromProvider(5 * 1024 * 1024) + } + downloader := manager.NewDownloader(client, option) paths := make([]string, len(uniqKeys)) getFilePath := func(s3Key string) string {