Skip to content

Commit 5174d8a

Browse files
authored
optimize: remove unuse param.
1 parent 5caa860 commit 5174d8a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/resty/core/coroutine.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ local get_request = base.get_request
33

44
do
55
local keys = {'create', 'yield', 'resume', 'status', 'wrap'}
6-
local errmsg = base.get_errmsg_ptr()
76
local get_raw_phase = ngx.get_raw_phase
87

98
for _, key in ipairs(keys) do
@@ -12,7 +11,7 @@ do
1211
coroutine[key] = function (...)
1312
local r = get_request()
1413
if r ~= nil then
15-
local ctx = get_raw_phase(r, errmsg)
14+
local ctx = get_raw_phase(r)
1615
if ctx ~= 0x020 and ctx ~= 0x040 then
1716
return ours(...)
1817
end

0 commit comments

Comments
 (0)