Skip to content

Commit

Permalink
Merge pull request #1454 from tkan145/global-write-guard
Browse files Browse the repository at this point in the history
Disable _G write guard warning
  • Loading branch information
tkan145 authored Apr 4, 2024
2 parents 849b5fb + 98db460 commit 284abf3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gateway/src/apicast/cli/template.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
--- These lines to avoid _G write guard issues, external depencies
-- See https://github.com/openresty/lua-nginx-module/issues/1558 for more info
rawset(_G, 'lfs', false)
rawset(_G, 'warn', false)

local _M = {}

local setmetatable = setmetatable
Expand Down

0 comments on commit 284abf3

Please sign in to comment.