Update webstats_common.lua

This commit is contained in:
midoks
2022-10-20 12:57:20 +08:00
parent 0eccebd9da
commit f47e6a47df
+3 -3
View File
@@ -47,9 +47,9 @@ function _M.getInstance(self)
if rawget(self, "instance") == nil then
rawset(self, "instance", self.new())
-- if 0 == ngx.worker.id() then
self:cron()
-- end
if 0 == ngx.worker.id() then
self:cron()
end
end
assert(self.instance ~= nil)
return self.instance