Browse Source

Add Makefile & add fmt target

Jackson Tian 7 years ago
parent
commit
243e7d9766
2 changed files with 8 additions and 3 deletions
  1. 5 0
      Makefile
  2. 3 3
      sdk/client.go

+ 5 - 0
Makefile

@@ -0,0 +1,5 @@
+
+all:
+
+fmt:
+	go fmt ./sdk ./integration ./services/...

+ 3 - 3
sdk/client.go

@@ -252,9 +252,9 @@ func (client *Client) DoActionWithSigner(request requests.AcsRequest, response r
 		if err != nil {
 			if !client.config.AutoRetry {
 				return
-			//} else if timeout = isTimeout(err); !timeout {
-			//	// if not timeout error, return
-			//	return
+				//} else if timeout = isTimeout(err); !timeout {
+				//	// if not timeout error, return
+				//	return
 			} else if retryTimes >= client.config.MaxRetryTime {
 				// timeout but reached the max retry times, return
 				timeoutErrorMsg := fmt.Sprintf(errors.TimeoutErrorMessage, strconv.Itoa(retryTimes+1), strconv.Itoa(retryTimes+1))