Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9c616bb

Browse files
committedJan 14, 2023
Fix default value
1 parent bb53f4d commit 9c616bb

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed
 

‎cli/cli.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ type args struct {
6464
S3Acl string `arg:"--s3-acl" help:"S3 ACL for uploaded files. Possible values: private, public-read, public-read-write, aws-exec-read, authenticated-read, bucket-owner-read, bucket-owner-full-control"`
6565
S3CacheControl string `arg:"--s3-cache-control" help:"Cache-Control header for uploaded files."`
6666
S3StorageClass string `arg:"--s3-storage-class" help:"S3 Storage Class for uploaded files."`
67-
S3KeysPerReq int64 `arg:"--s3-keys-per-req" help:"Max numbers of keys retrieved via List request"`
67+
S3KeysPerReq int64 `arg:"--s3-keys-per-req" help:"Max numbers of keys retrieved via List request" default:"1000"`
6868
S3ServerSideEncryption string `arg:"--s3-sse" help:"Use server-side encryption, if specified valid options are \"AES256\" and \"aws:kms\"."`
6969
// FS config
7070
FSFilePerm string `arg:"--fs-file-perm" help:"File permissions" default:"0644"`

‎storage/s3/s3.go

+7-5
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,20 @@ import (
55
"context"
66
"crypto/tls"
77
"errors"
8+
"io"
9+
"net/http"
10+
"net/url"
11+
"strings"
12+
"time"
13+
814
"github.com/aws/aws-sdk-go/aws"
915
"github.com/aws/aws-sdk-go/aws/credentials"
1016
"github.com/aws/aws-sdk-go/aws/defaults"
1117
"github.com/aws/aws-sdk-go/aws/session"
1218
"github.com/aws/aws-sdk-go/service/s3"
1319
"github.com/larrabee/ratelimit"
20+
1421
"github.com/larrabee/s3sync/storage"
15-
"io"
16-
"net/http"
17-
"net/url"
18-
"strings"
19-
"time"
2022
)
2123

2224
// S3Storage configuration.

0 commit comments

Comments
 (0)
Please sign in to comment.