We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c15009f + 39df5a2 commit 1f5e891Copy full SHA for 1f5e891
crawler/crawler.go
@@ -17,6 +17,12 @@ import (
17
"github.com/tschaub/workgroup"
18
)
19
20
+var httpClient = retryablehttp.NewClient()
21
+
22
+func init() {
23
+ httpClient.Logger = nil
24
+}
25
26
// RecursionType informs the crawler how to treat linked resources.
27
// None will only call the visitor for the first resource. Children
28
// will call the visitor for all child catalogs, collections, and items.
@@ -65,7 +71,7 @@ func loadFile(resourcePath string, value any) error {
65
71
}
66
72
67
73
func loadUrl(resourceUrl string, value any) error {
68
- resp, err := retryablehttp.Get(resourceUrl)
74
+ resp, err := httpClient.Get(resourceUrl)
69
75
if err != nil {
70
76
return err
77
0 commit comments