diff --git a/lib/resty/ada.lua b/lib/resty/ada.lua index 2efc8e8..1496f5d 100644 --- a/lib/resty/ada.lua +++ b/lib/resty/ada.lua @@ -15,9 +15,7 @@ local ada_string_to_lua = utils.ada_string_to_lua local ada_owned_string_to_lua = utils.ada_owned_string_to_lua - -local ffi = require("ffi") -local ffi_gc = ffi.gc +local ffi_gc = require("ffi").gc local fmt = string.format diff --git a/lib/resty/ada/utils.lua b/lib/resty/ada/utils.lua index 7adee6a..bc8cf6a 100644 --- a/lib/resty/ada/utils.lua +++ b/lib/resty/ada/utils.lua @@ -9,8 +9,7 @@ local lib = require("resty.ada.lib") local new_tab = require("table.new") -local ffi = require("ffi") -local ffi_str = ffi.string +local ffi_str = require("ffi").string local tonumber = tonumber