From 70540dfa41268c400169edd77f6e78357b3771ae Mon Sep 17 00:00:00 2001 From: gazebo Date: Sun, 8 Jul 2018 13:37:25 +0800 Subject: [PATCH] - change freshfood retry count to 1, timeout to 20s. --- legacy/freshfood/freshfood.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {