Skip to content

Commit 5d865a8

Browse files
authored
Merge pull request #17 from Invizory/fix-dsn
Fix DSN parsing in connect function
2 parents 0b6b55d + 50208dd commit 5d865a8

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
@@ -198,7 +198,7 @@ function _M.connect(self, params)
198198
if params and params.url then
199199
local err
200200
params, err = parse_dsn(params)
201-
if not ok then ngx_log(ngx_ERR, err) end
201+
if not params then ngx_log(ngx_ERR, err) end
202202
end
203203

204204
params = tbl_copy_merge_defaults(params, self.config)

0 commit comments

Comments
 (0)