From 486bcfb3a88c90feeac24a6521e7c9a3e9f693f4 Mon Sep 17 00:00:00 2001 From: Bai Miao <68489543+ChrisCatCP@users.noreply.github.com> Date: Tue, 10 Jun 2025 09:58:48 +0800 Subject: [PATCH] remove unuse param --- lib/resty/core/coroutine.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/resty/core/coroutine.lua b/lib/resty/core/coroutine.lua index 9c95b163e..b4816283e 100644 --- a/lib/resty/core/coroutine.lua +++ b/lib/resty/core/coroutine.lua @@ -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 @@ -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