Skip to content

Commit 12d1320

Browse files
authored
fix: habitat api slow response
Habitat API's are getting slower. We do use pagination, but API does not have way to customize total count. API calls with base page size are timing out.
1 parent fcb48cf commit 12d1320

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hab/hab.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ type depot struct {
3737

3838
// New returns a new depot object
3939
func New(baseURL string) Depot {
40-
return &depot{baseURL, &http.Client{Timeout: 10 * time.Second}}
40+
return &depot{baseURL, &http.Client{Timeout: 20 * time.Second}}
4141
}
4242

4343
// packagesInfo fetch packages info from depot

0 commit comments

Comments
 (0)