Skip to content

Commit 1bd9622

Browse files
authored
fix: increase page size to reduce requests (#820)
1 parent 6608cb3 commit 1bd9622

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cloud/services/domains.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,11 @@ func EnsureLinodeDNSEntries(ctx context.Context, cscope *scope.ClusterScope, ope
174174
if err != nil {
175175
return err
176176
}
177-
domainRecords, err := cscope.LinodeDomainsClient.ListDomainRecords(ctx, domainID, linodego.NewListOptions(0, string(filter)))
177+
178+
listOptions := linodego.NewListOptions(0, string(filter))
179+
listOptions.PageSize = 500 // set a high page size to avoid multiple requests
180+
181+
domainRecords, err := cscope.LinodeDomainsClient.ListDomainRecords(ctx, domainID, listOptions)
178182
if err != nil {
179183
return err
180184
}

0 commit comments

Comments
 (0)