Skip to content

Commit 103312b

Browse files
committed
make async parameter optional
1 parent 4e5b664 commit 103312b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

colly.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ func ID(id uint32) CollectorOption {
365365
}
366366

367367
// Async turns on asynchronous network requests.
368-
func Async() CollectorOption {
368+
func Async(a ...bool) CollectorOption {
369369
return func(c *Collector) {
370370
c.Async = true
371371
}

0 commit comments

Comments
 (0)