Skip to content

Commit

Permalink
use tools.gzip
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Nov 10, 2023
1 parent 13d3d57 commit 249f3cd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion kong/clustering/compat/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ local table_insert = table.insert
local table_sort = table.sort
local gsub = string.gsub
local split = utils.split
local deflate_gzip = utils.deflate_gzip
local deflate_gzip = require("kong.tools.gzip").deflate_gzip
local cjson_encode = cjson.encode

local ngx = ngx
Expand Down
5 changes: 2 additions & 3 deletions kong/clustering/control_plane.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ local _MT = { __index = _M, }
local semaphore = require("ngx.semaphore")
local cjson = require("cjson.safe")
local declarative = require("kong.db.declarative")
local utils = require("kong.tools.utils")
local clustering_utils = require("kong.clustering.utils")
local compat = require("kong.clustering.compat")
local constants = require("kong.constants")
Expand Down Expand Up @@ -40,8 +39,8 @@ local sleep = ngx.sleep

local plugins_list_to_map = compat.plugins_list_to_map
local update_compatible_payload = compat.update_compatible_payload
local deflate_gzip = utils.deflate_gzip
local yield = utils.yield
local deflate_gzip = require("kong.tools.gzip").deflate_gzip
local yield = require("kong.tools.yield").yield
local connect_dp = clustering_utils.connect_dp


Expand Down
5 changes: 2 additions & 3 deletions kong/clustering/data_plane.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ local config_helper = require("kong.clustering.config_helper")
local clustering_utils = require("kong.clustering.utils")
local declarative = require("kong.db.declarative")
local constants = require("kong.constants")
local utils = require("kong.tools.utils")
local pl_stringx = require("pl.stringx")


Expand All @@ -25,8 +24,8 @@ local cjson_decode = cjson.decode
local cjson_encode = cjson.encode
local exiting = ngx.worker.exiting
local ngx_time = ngx.time
local inflate_gzip = utils.inflate_gzip
local yield = utils.yield
local inflate_gzip = require("kong.tools.gzip").inflate_gzip
local yield = require("kong.tools.yield").yield


local ngx_ERR = ngx.ERR
Expand Down

0 comments on commit 249f3cd

Please sign in to comment.