Skip to content

Commit

Permalink
yield in to_sorted_string
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Jun 3, 2022
1 parent c5bb0cd commit 7287710
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions kong/clustering/config_helper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ local isarray = require("table.isarray")
local nkeys = require("table.nkeys")
local new_tab = require("table.new")

local yield = require("kong.tools.utils").yield

local ngx_log = ngx.log
local ngx_null = ngx.null
local ngx_md5 = ngx.md5
Expand All @@ -30,6 +32,8 @@ local _M = {}


local function to_sorted_string(value)
yield(true)

if value == ngx_null then
return "/null/"
end
Expand Down
2 changes: 1 addition & 1 deletion kong/clustering/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ local pl_tablex = require("pl.tablex")
local ssl = require("ngx.ssl")
local openssl_x509 = require("resty.openssl.x509")
local ngx_log = ngx.log
local sort = table.sort
local assert = assert
local sort = table.sort

local check_protocol_support =
require("kong.clustering.utils").check_protocol_support
Expand Down

0 comments on commit 7287710

Please sign in to comment.