liubao68 commented on a change in pull request #625: [SCB-444]try to optimize 
autoDiscovery function
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/625#discussion_r178255323
 
 

 ##########
 File path: 
service-registry/src/main/java/org/apache/servicecomb/serviceregistry/client/http/RequestContext.java
 ##########
 @@ -68,11 +67,12 @@ public void setParams(RequestParam params) {
     this.params = params;
   }
 
-  public boolean isRetry() {
-    return retry;
+
+  public int getRetryTimes() {
+    return retryTimes;
   }
 
-  public void setRetry(boolean retry) {
-    this.retry = retry;
+  public void setRetryTimes(int retryTimes) {
 
 Review comment:
   using a incrementRetryTimes makes logic simpler

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to