mirror of
https://github.com/minio/minio.git
synced 2025-01-24 05:03:16 -05:00
Use maxKeys for iterator
This commit is contained in:
parent
f3e5e9fb29
commit
bd67117756
@ -302,10 +302,9 @@ func (l *gcsGateway) ListObjects(bucket string, prefix string, marker string, de
|
||||
nextMarker := ""
|
||||
prefixes := []string{}
|
||||
|
||||
maxKeys = maxKeys
|
||||
|
||||
// we'll set marker to continue
|
||||
it.PageInfo().Token = marker
|
||||
it.PageInfo().MaxSize = maxKeys
|
||||
|
||||
objects := []ObjectInfo{}
|
||||
for {
|
||||
|
Loading…
x
Reference in New Issue
Block a user