Skip to content

Commit

Permalink
conf cluster_simd_json
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Jul 24, 2024
1 parent f6a591e commit e80288d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion kong/clustering/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ end

-- encode/decode json with cjson or simdjson
local ok, simdjson = pcall(require, "resty.simdjson")
if not ok then
if not ok or not kong.configuration.cluster_simd_json then
local cjson = require("cjson.safe")

_M.json_decode = cjson.decode
Expand Down
1 change: 1 addition & 0 deletions kong/conf_loader/constants.lua
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,7 @@ local CONF_PARSERS = {
cluster_use_proxy = { typ = "boolean" },
cluster_dp_labels = { typ = "array" },
cluster_rpc = { typ = "boolean" },
cluster_simd_json = { typ = "boolean" },

kic = { typ = "boolean" },
pluginserver_names = { typ = "array" },
Expand Down

0 comments on commit e80288d

Please sign in to comment.