Skip to content

Commit

Permalink
change: remove deprecated health_check_retry option (apache#7676)
Browse files Browse the repository at this point in the history
  • Loading branch information
tzssangglass authored and Liu-Junlin committed Nov 4, 2022
1 parent 0463097 commit 452f12d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apisix/cli/etcd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 452f12d

Please sign in to comment.