Address comments
This commit is contained in:
parent
08694cc9de
commit
a4e30941ff
1 changed files with 2 additions and 2 deletions
|
@ -225,8 +225,8 @@ end
|
||||||
|
|
||||||
function _M.set_cache_size(size)
|
function _M.set_cache_size(size)
|
||||||
local cache, err = lrucache.new(size)
|
local cache, err = lrucache.new(size)
|
||||||
if err then
|
if not cache then
|
||||||
ngx.log(ngx.ERR, string.format("failed to create the certificate cache: %s", tostring(err)))
|
ngx.log(ngx.ERR, string.format("failed to create the certificate cache: %s", err))
|
||||||
end
|
end
|
||||||
certificate_cache = cache
|
certificate_cache = cache
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue