Skip to content

Commit

Permalink
update db/strategies
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Aug 27, 2024
1 parent 02cc3f2 commit 161a8a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
7 changes: 1 addition & 6 deletions kong/db/strategies/postgres/connector.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ local utils_toposort = db_utils.topological_sort
local insert = table.insert
local table_merge = require("kong.tools.table").table_merge
local strip = require("kong.tools.string").strip
local now_updated = require("kong.tools.time").get_updated_now


local WARN = ngx.WARN
Expand All @@ -54,12 +55,6 @@ local ADMIN_API_PHASE = kong_global.phases.admin_api
local CORE_ENTITIES = constants.CORE_ENTITIES


local function now_updated()
update_time()
return now()
end


local function iterator(rows)
local i = 0
return function()
Expand Down
7 changes: 1 addition & 6 deletions kong/db/strategies/postgres/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ local rep = string.rep
local sub = string.sub
local log = ngx.log
local cycle_aware_deep_copy = require("kong.tools.table").cycle_aware_deep_copy
local now_updated = require("kong.tools.time").get_updated_now


local NOTICE = ngx.NOTICE
Expand All @@ -45,12 +46,6 @@ local function noop(...)
end


local function now_updated()
update_time()
return now()
end


-- @param name Query name, for debugging purposes
-- @param query A string describing an array of single-quoted strings which
-- contain parts of an SQL query including numeric placeholders like $0, $1, etc.
Expand Down

0 comments on commit 161a8a8

Please sign in to comment.