Skip to content

Commit 4ce493b

Browse files
authored
Work around inconsiderate api limits - part 2 (#126)
1 parent d20feed commit 4ce493b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

download.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,10 @@ func fetchRecords(endpoint string, zone string, from int64, end int64, limit int
248248
from = key
249249
}
250250
}
251+
252+
if limit == 0 {
253+
break
254+
}
251255
}
252256

253257
for _, item = range data {

0 commit comments

Comments
 (0)