wingify / lua-resty-rabbitmqstomp

Opinionated Lua RabbitMQ client library for the ngx_lua apps based on the cosocket API
194 stars 55 forks source link

fix warning log with high version openresty: _G write guard #14

Closed zhucebuliaopx closed 4 years ago

zhucebuliaopx commented 4 years ago

fix warning log with high version openresty: _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