Skip to content

Commit

Permalink
bugfix: missing argument premature because it was called by ngx.tim…
Browse files Browse the repository at this point in the history
…er . (#1796)
  • Loading branch information
wangxiaochuang authored Jul 2, 2020
1 parent 2ccf020 commit e6e387a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apisix/core/config_yaml.lua
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ local mt = {

local apisix_yaml
local apisix_yaml_ctime
local function read_apisix_yaml(pre_mtime)
local function read_apisix_yaml(premature, pre_mtime)
if premature then
return
end
local attributes, err = lfs.attributes(apisix_yaml_path)
if not attributes then
log.error("failed to fetch ", apisix_yaml_path, " attributes: ", err)
Expand Down

0 comments on commit e6e387a

Please sign in to comment.