Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
johzchen committed Jun 5, 2020
1 parent 6edb7b2 commit 346ca82
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apisix/balancer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,20 @@
-- See the License for the specific language governing permissions and
-- limitations under the License.
--
local healthcheck
local require = require
local roundrobin = require("resty.roundrobin")
local discovery = require("apisix.discovery.init").discovery
local resty_chash = require("resty.chash")
local balancer = require("ngx.balancer")
local core = require("apisix.core")
local healthcheck = require("resty.healthcheck")
local error = error
local str_char = string.char
local str_gsub = string.gsub
local pairs = pairs
local ipairs = ipairs
local tostring = tostring

local set_more_tries = balancer.set_more_tries
local get_last_failure = balancer.get_last_failure
local set_timeouts = balancer.set_timeouts
Expand Down Expand Up @@ -82,6 +84,9 @@ end


local function create_checker(upstream, healthcheck_parent)
if healthcheck == nil then
healthcheck = require("resty.healthcheck")
end
local checker = healthcheck.new({
name = "upstream#" .. healthcheck_parent.key,
shm_name = "upstream-healthcheck",
Expand Down

0 comments on commit 346ca82

Please sign in to comment.