Skip to content

Commit a232410

Browse files
committed
#avmxf - more ammends
1 parent 17bf0c7 commit a232410

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

octopus/modelfactory.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,13 @@ func createNode(parentUrlStr, urlStr string, depth int64) *Node {
4141
}
4242
}
4343

44+
// Returns an instance of CrawlOptions with the values set to sensible defaults.
4445
func GetDefaultCrawlOptions() *CrawlOptions {
4546
return &CrawlOptions{
4647
MaxCrawlDepth: defaultMaxDepth,
4748
MaxCrawlLinks: defaultCrawlLimit,
4849
StayWithinBaseHost: false,
49-
CrawlRatePerSec: -1,
50+
CrawlRate: -1,
5051
RespectRobots: false,
5152
IncludeBody: true,
5253
OpAdapter: nil,
@@ -55,6 +56,7 @@ func GetDefaultCrawlOptions() *CrawlOptions {
5556
}
5657
}
5758

59+
// Utility function to create a NodeChSet given a created Node and Quit Channel.
5860
func MakeNodeChSet(nodeCh chan<- *Node, quitCh chan<- int) *NodeChSet {
5961
return &NodeChSet{
6062
NodeCh: nodeCh,

0 commit comments

Comments
 (0)