Use a paginated loop to fetch servers from the Panel rather than a single massive request

This commit is contained in:
Dane Everitt
2020-10-31 11:05:53 -07:00
parent 334b3e8d10
commit 41a67933eb
4 changed files with 104 additions and 9 deletions

View File

@@ -32,7 +32,7 @@ func LoadDirectory() error {
}
log.Info("fetching list of servers from API")
configs, err := api.New().GetAllServerConfigurations()
configs, err := api.New().GetServers()
if err != nil {
if !api.IsRequestError(err) {
return errors.WithStack(err)