Skip to content

Commit

Permalink
fix: habitat api slow response
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jithine authored Nov 7, 2018
1 parent fcb48cf commit 12d1320
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hab/hab.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type depot struct {

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

// packagesInfo fetch packages info from depot
Expand Down

0 comments on commit 12d1320

Please sign in to comment.