You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/09/05 09:16:35 UTC

[GitHub] [apisix] tokers commented on a change in pull request #4979: fix(consul): retry connecting after a delay

tokers commented on a change in pull request #4979:
URL: https://github.com/apache/apisix/pull/4979#discussion_r702393840



##########
File path: apisix/discovery/consul_kv.lua
##########
@@ -331,6 +332,15 @@ function _M.connect(premature, consul_server)
             ", got result: ", json_delay_encode(result, true),
             ", with error: ", error_info)
 
+        if not retry_delay then
+            retry_delay = 1
+        else
+            retry_delay = retry_delay * 4

Review comment:
       Why here we use `4` as the factor?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org