Commit 327e4d75 by Joneq

修改代码

parent 2dc7c6c2
Showing with 2 additions and 1 deletions
......@@ -47,9 +47,10 @@ if not ok then
return
end
if config.redis_auth ~= "" then
local ok, err = red:auth(config.redis_auth)
ngx.say(err)
-- 如果连接失败,跳转到label处
if not ok then
ngx.say("failed to connect: ", err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment