lua-resty-mongol icon indicating copy to clipboard operation
lua-resty-mongol copied to clipboard

the driver can not use in context ngx.timer

Open BloodyKnight opened this issue 9 years ago • 0 comments

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.

BloodyKnight avatar Feb 18 '16 10:02 BloodyKnight