fix retry nil

This commit is contained in:
2023-08-09 19:15:18 +08:00
parent 8cd32e4486
commit 5355f80ff1
+4
View File
@@ -11,6 +11,10 @@ local Upyun = require('lib.upyun')
function upyun_upload.upload(filepath, filename, retry)
if retry == nil then
retry = 1
end
if retry > 3 then
ngx.log(ngx.ERR, "failed to upload file : reach max retries")
else