You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by sp...@apache.org on 2022/08/16 09:44:12 UTC

[apisix] branch master updated: change: remove deprecated health_check_retry option (#7676)

This is an automated email from the ASF dual-hosted git repository.

spacewander pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new 639bcc905 change: remove deprecated health_check_retry option (#7676)
639bcc905 is described below

commit 639bcc90565231214e3ba7f7613b5cf59ad7b347
Author: tzssangglass <tz...@gmail.com>
AuthorDate: Tue Aug 16 17:44:03 2022 +0800

    change: remove deprecated health_check_retry option (#7676)
---
 apisix/cli/etcd.lua | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/apisix/cli/etcd.lua b/apisix/cli/etcd.lua
index 43aa4f84a..adf5c26cd 100644
--- a/apisix/cli/etcd.lua
+++ b/apisix/cli/etcd.lua
@@ -198,8 +198,7 @@ function _M.init(env, args)
         local retry_time = 0
 
         local etcd = yaml_conf.etcd
-        -- TODO: remove deprecated health_check_retry option in APISIX v3
-        local max_retry = tonumber(etcd.startup_retry or etcd.health_check_retry) or 2
+        local max_retry = tonumber(etcd.startup_retry) or 2
         while retry_time < max_retry do
             res, err = request(version_url, yaml_conf)
             -- In case of failure, request returns nil followed by an error message.