diff --git a/legacy/freshfood/freshfood.go b/legacy/freshfood/freshfood.go index bced5b06c..2b3388248 100644 --- a/legacy/freshfood/freshfood.go +++ b/legacy/freshfood/freshfood.go @@ -92,7 +92,7 @@ const ( ) const ( - retryCount = 2 + retryCount = 1 ) type API struct { @@ -113,7 +113,7 @@ func init() { } func New(baseURL string) *API { - return &API{baseURL, &http.Client{Timeout: time.Second * 5}} + return &API{baseURL, &http.Client{Timeout: time.Second * 20}} } func (f *API) AccessFreshFood(apiStr string, params url.Values) error {