Address comments

This commit is contained in:
Dayang Shen 2022-06-03 13:07:36 +08:00
parent 08694cc9de
commit a4e30941ff

View file

@ -225,8 +225,8 @@ end
function _M.set_cache_size(size)
local cache, err = lrucache.new(size)
if err then
ngx.log(ngx.ERR, string.format("failed to create the certificate cache: %s", tostring(err)))
if not cache then
ngx.log(ngx.ERR, string.format("failed to create the certificate cache: %s", err))
end
certificate_cache = cache
end