Skip to content
This repository was archived by the owner on Dec 13, 2022. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions httpsyet/crawler.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type site struct {
Depth int
}

// Run the cralwer.
// Run the crawler.
// Can return validation errors.
// All crawling errors are reported via logger.
// Output is written to writer.
Expand Down Expand Up @@ -139,7 +139,7 @@ func toURLs(links []string, parse func(string) (*url.URL, error)) (urls []*url.U
}

func parallel(p int) int {
if p == 0 {
if p < 1 {
return defaultParallel
}
return p
Expand Down