Start at next page, not current page

This commit is contained in:
Dane Everitt 2020-10-31 13:38:19 -07:00
parent ca3becfb55
commit b8766d3c82
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -81,7 +81,7 @@ func (r *Request) GetServers() ([]RawServerData, error) {
Debug("detected multiple pages of server configurations, fetching remaining...")
g, ctx := errgroup.WithContext(context.Background())
for i := res.Meta.CurrentPage; i <= res.Meta.LastPage; i++ {
for i := res.Meta.CurrentPage + 1; i <= res.Meta.LastPage; i++ {
page := i
g.Go(func() error {