when use the lua-resty-mongol in ngx.timer context, a error occured as follows:resty/mongol/object_id.lua:56: API disabled in the current context, context: ngx.timer,
the reason is the ngx.var.pid can not use in ngx.timer context, and at last I use ngx.worker.pid() instead.
when use the lua-resty-mongol in ngx.timer context, a error occured as follows:resty/mongol/object_id.lua:56: API disabled in the current context, context: ngx.timer, the reason is the ngx.var.pid can not use in ngx.timer context, and at last I use ngx.worker.pid() instead.