From 4497c7312547a1d60f499ed6fae059cf51a4e70a Mon Sep 17 00:00:00 2001 From: David Ortiz Date: Mon, 11 Jun 2018 11:35:02 +0200 Subject: [PATCH] policy/3scale_batcher/keys_helper: require table.new Seems to be needed with the new version of OpenResty. --- gateway/src/apicast/policy/3scale_batcher/keys_helper.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gateway/src/apicast/policy/3scale_batcher/keys_helper.lua b/gateway/src/apicast/policy/3scale_batcher/keys_helper.lua index a8acc61a5..0acab98e7 100644 --- a/gateway/src/apicast/policy/3scale_batcher/keys_helper.lua +++ b/gateway/src/apicast/policy/3scale_batcher/keys_helper.lua @@ -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 = {} @@ -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