From 9bd3b3f0860d110deae4b750b5ea8f303e0c1faa Mon Sep 17 00:00:00 2001 From: gazebo Date: Fri, 8 Mar 2019 18:19:19 +0800 Subject: [PATCH] =?UTF-8?q?-=20AccessPlatformAPIWithRetry=20=E5=8F=AA?= =?UTF-8?q?=E8=A6=81=E6=98=AF=E7=BD=91=E7=BB=9C=E9=94=99=E8=AF=AF=E9=83=BD?= =?UTF-8?q?=E9=87=8D=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platformapi/platformapi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformapi/platformapi.go b/platformapi/platformapi.go index d8673e29..6e0a9f1b 100644 --- a/platformapi/platformapi.go +++ b/platformapi/platformapi.go @@ -110,7 +110,7 @@ func AccessPlatformAPIWithRetry(client *http.Client, handleRequest func() *http. if err != nil { baseapi.SugarLogger.Debugf("AccessPlatformAPIWithRetry:%s client.Get return err:%v", trackID, err) err, ok := err.(net.Error) - if ok && err.Timeout() && recoverableErrorRetryCount <= config.MaxRecoverableRetryCount { + if ok /*&& err.Timeout()*/ && recoverableErrorRetryCount <= config.MaxRecoverableRetryCount { // 只要是网络错误都重试 recoverableErrorRetryCount++ continue } else {