Mercurial > prosody-hg
diff util/openmetrics.lua @ 12589:39ae08180c81
compat: Remove handling of Lua 5.1 location of 'unpack' function
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Mon, 11 Jul 2022 19:07:38 +0200 |
| parents | 7ef7abb72cdd |
| children | 5eaf77114fdb |
line wrap: on
line diff
--- a/util/openmetrics.lua Mon Jul 11 17:32:13 2022 +0200 +++ b/util/openmetrics.lua Mon Jul 11 19:07:38 2022 +0200 @@ -26,7 +26,7 @@ local new_multitable = require "util.multitable".new; local iter_multitable = require "util.multitable".iter; local t_concat, t_insert = table.concat, table.insert; -local t_pack, t_unpack = require "util.table".pack, table.unpack or unpack; --luacheck: ignore 113/unpack +local t_pack, t_unpack = require "util.table".pack, table.unpack; -- BEGIN of Utility: "metric proxy" -- This allows to wrap a MetricFamily in a proxy which only provides the
