Skip to content
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

refactor(runloop): use utils.get_updated_monotonic_ms() #11672

Merged
merged 2 commits into from
Oct 4, 2023
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
8 changes: 1 addition & 7 deletions kong/runloop/handler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -609,9 +609,8 @@ end

local reconfigure_handler
do
local cur_msec = require("resty.core.time").monotonic_msec
local get_monotonic_ms = utils.get_updated_monotonic_ms

local update_time = ngx.update_time
local ngx_worker_id = ngx.worker.id
local exiting = ngx.worker.exiting

Expand All @@ -622,11 +621,6 @@ do
local CURRENT_PLUGINS_HASH = 0
local CURRENT_BALANCER_HASH = 0

local function get_monotonic_ms()
update_time()
return cur_msec()
end

reconfigure_handler = function(data)
local worker_id = ngx_worker_id()

Expand Down