summaryrefslogtreecommitdiff
path: root/aws.go
diff options
context:
space:
mode:
authorNick White <git@njw.name>2021-01-26 10:54:19 +0000
committerNick White <git@njw.name>2021-01-26 10:54:19 +0000
commit670d5c1b74f2fa4683bfe7e2d9b1baee14db9104 (patch)
tree9d3698bddb7da9250f6234a494561feaecac9b3a /aws.go
parent7d9f77c2f1102aec026d1af78d1fe4725ed76674 (diff)
Stop limiting keys returned from listobjectprefixes' api usage; this speeds up the request markedly
Diffstat (limited to 'aws.go')
-rw-r--r--aws.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/aws.go b/aws.go
index 40c452d..57aadd3 100644
--- a/aws.go
+++ b/aws.go
@@ -369,7 +369,6 @@ func (a *AwsConn) ListObjectPrefixes(bucket string) ([]string, error) {
err := a.s3svc.ListObjectsV2Pages(&s3.ListObjectsV2Input{
Bucket: aws.String(bucket),
Delimiter: aws.String("/"),
- MaxKeys: aws.Int64(1),
}, func(page *s3.ListObjectsV2Output, last bool) bool {
for _, r := range page.CommonPrefixes {
prefixes = append(prefixes, *r.Prefix)