Skip to content

Commit

Permalink
fix: reduce chunk size while fetching groups
Browse files Browse the repository at this point in the history
  • Loading branch information
mvach committed Oct 13, 2024
1 parent 653b852 commit 3109b28
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/group_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ func (g groupExporter) GetGroupNames2IDMapping(
return nil, fmt.Errorf("no dynamic groups found")
}

chunkSize := 20
//Chunksize must not exceed 10 otherwise the API will return
//a random subset of 10 groups
chunkSize := 10
for i := 0; i < len(allGroupIDs); i += chunkSize {
end := i + chunkSize
if end > len(allGroupIDs) {
Expand Down

0 comments on commit 3109b28

Please sign in to comment.