Skip to content

Commit

Permalink
refactor(runloop): use utils.get_updated_monotonic_ms() (#11672)
Browse files Browse the repository at this point in the history
* refactor(runloop): use utils.get_updated_monotonic_ms()

* lint fix
  • Loading branch information
chronolaw authored Oct 4, 2023
1 parent 2804fe3 commit 32872bf
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions kong/runloop/handler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -612,9 +612,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 @@ -625,11 +624,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

1 comment on commit 32872bf

@khcp-gha-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bazel Build

Docker image available kong/kong:32872bfe6c2bd199ed50a5b050d358a508137a4c
Artifacts available https://github.com/Kong/kong/actions/runs/6407612787

Please sign in to comment.