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

writing a global lua variable ('resty') which may lead to race conditions between concurrent requests, so prefer the use of 'local' variables

Open jicvi opened this issue 4 years ago • 0 comments

What's wrong with this?

_G write guard:12: writing a global lua variable ('resty') which may lead to race conditions between concurrent requests, so prefer the use of 'local' variables stack traceback: [C]: in function 'module' lualib/resty/mongol/init.lua:1: in main chunk [C]: in function 'require'

jicvi avatar Jun 10 '20 10:06 jicvi