diff options
author | Nick White <git@njw.name> | 2021-01-26 10:54:19 +0000 |
---|---|---|
committer | Nick White <git@njw.name> | 2021-01-26 10:54:19 +0000 |
commit | 670d5c1b74f2fa4683bfe7e2d9b1baee14db9104 (patch) | |
tree | 9d3698bddb7da9250f6234a494561feaecac9b3a /aws.go | |
parent | 7d9f77c2f1102aec026d1af78d1fe4725ed76674 (diff) |
Stop limiting keys returned from listobjectprefixes' api usage; this speeds up the request markedly
Diffstat (limited to 'aws.go')
-rw-r--r-- | aws.go | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -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) |