Skip to content

Commit 1d5c898

Browse files
spacewanderagentzh
authored andcommitted
optimize: removed unnecessary ffi declarations of struct ngx_http_request_s from resty.core.base.
Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
1 parent 4a26323 commit 1d5c898

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/resty/core/base.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ end
9292
if subsystem == 'http' then
9393
if not pcall(ffi.typeof, "ngx_http_request_t") then
9494
ffi.cdef[[
95-
struct ngx_http_request_s;
9695
typedef struct ngx_http_request_s ngx_http_request_t;
9796
]]
9897
end
@@ -109,7 +108,6 @@ if subsystem == 'http' then
109108
elseif subsystem == 'stream' then
110109
if not pcall(ffi.typeof, "ngx_stream_lua_request_t") then
111110
ffi.cdef[[
112-
struct ngx_stream_lua_request_s;
113111
typedef struct ngx_stream_lua_request_s ngx_stream_lua_request_t;
114112
]]
115113
end

0 commit comments

Comments
 (0)