Skip to content

optimize: remove unuse param #504

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 12, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions lib/resty/core/coroutine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ local get_request = base.get_request

do
local keys = {'create', 'yield', 'resume', 'status', 'wrap'}
local errmsg = base.get_errmsg_ptr()
local get_raw_phase = ngx.get_raw_phase

for _, key in ipairs(keys) do
Expand All @@ -12,7 +11,7 @@ do
coroutine[key] = function (...)
local r = get_request()
if r ~= nil then
local ctx = get_raw_phase(r, errmsg)
local ctx = get_raw_phase(r)
if ctx ~= 0x020 and ctx ~= 0x040 then
return ours(...)
end
Expand Down