Skip to content

Commit

Permalink
policy/3scale_batcher/keys_helper: require table.new
Browse files Browse the repository at this point in the history
Seems to be needed with the new version of OpenResty.
  • Loading branch information
davidor committed Jun 11, 2018
1 parent 9206762 commit 4497c73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gateway/src/apicast/policy/3scale_batcher/keys_helper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ local concat = table.concat
local sort = table.sort
local unpack = table.unpack
local ngx_re = ngx.re
local table = table
local new_tab = require('resty.core.base').new_tab

local _M = {}

Expand All @@ -20,7 +20,7 @@ local function creds_part_in_key(creds)
end

local function metrics_part_in_key(usage)
local usages = table.new(#usage.metrics, 0)
local usages = new_tab(#usage.metrics, 0)

local deltas = usage.deltas

Expand Down

0 comments on commit 4497c73

Please sign in to comment.