- change freshfood retry count to 1, timeout to 20s.

This commit is contained in:
gazebo
2018-07-08 13:37:25 +08:00
parent 704f232c99
commit 70540dfa41

View File

@@ -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 {