Use maxKeys for iterator

master
Remco Verhoef 8 years ago committed by Harshavardhana
parent f3e5e9fb29
commit bd67117756
  1. 3
      cmd/gateway-gcs.go

@ -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…
Cancel
Save