mirror of
https://bitbucket.org/skobkin/point-tools-crawler.git
synced 2024-12-12 12:58:21 +00:00
Limit bugfix.
This commit is contained in:
parent
df54db176d
commit
9efce351d8
|
@ -90,7 +90,7 @@ func main() {
|
||||||
for page.HasNext {
|
for page.HasNext {
|
||||||
pageNumber++
|
pageNumber++
|
||||||
|
|
||||||
if pageNumber > limit {
|
if limit > 0 && pageNumber > limit {
|
||||||
fmt.Println("Limit reached")
|
fmt.Println("Limit reached")
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue