Skip to content

Commit

Permalink
optimize: localize tonumber for ngx.worker.pids
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Mar 26, 2024
1 parent 362bc05 commit fa447ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/resty/core/worker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ if is_not_windows then
ngx_lua_ffi_worker_pids = C.ngx_stream_lua_ffi_worker_pids
end

local tonumber = tonumber
local ngx_phase = ngx.get_phase

function ngx.worker.pids()
Expand Down

0 comments on commit fa447ca

Please sign in to comment.