Skip to content

Commit e591e0b

Browse files
committed
check correct variable for DSN parsing result
1 parent 9d56ac3 commit e591e0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/resty/redis/connector.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ function _M.new(config)
173173
if config and config.url then
174174
local err
175175
config, err = parse_dsn(config)
176-
if not ok then ngx_log(ngx_ERR, err) end
176+
if not config then ngx_log(ngx_ERR, err) end
177177
end
178178

179179
local ok, config = pcall(tbl_copy_merge_defaults, config, DEFAULTS)

0 commit comments

Comments
 (0)