aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-05-30 17:34:58 +0200
committerKim Alvefur <zash@zash.se>2022-05-30 17:34:58 +0200
commit1261dfba9f026ea1854ee16c078d81c0797f1e4a (patch)
tree7a81e6e91b83a516a1ce8a94e12d33a5f7fb11f2
parent7f2a66015848537a74b299ca67695a261215729a (diff)
downloadprosody-1261dfba9f026ea1854ee16c078d81c0797f1e4a.tar.gz
prosody-1261dfba9f026ea1854ee16c078d81c0797f1e4a.zip
luacheck: Shut up (backports 3caff1f93520, ignores module deleted in trunk)
-rw-r--r--.luacheckrc2
-rw-r--r--util/openmetrics.lua4
2 files changed, 4 insertions, 2 deletions
diff --git a/.luacheckrc b/.luacheckrc
index d08dfa70..85035b86 100644
--- a/.luacheckrc
+++ b/.luacheckrc
@@ -149,6 +149,8 @@ if os.getenv("PROSODY_STRICT_LINT") ~= "1" then
"net/dns.lua";
"net/server_select.lua";
+ "util/vcard.lua";
+
"plugins/mod_storage_sql1.lua";
"spec/core_moduleapi_spec.lua";
diff --git a/util/openmetrics.lua b/util/openmetrics.lua
index cb7791ec..c18e63e9 100644
--- a/util/openmetrics.lua
+++ b/util/openmetrics.lua
@@ -38,7 +38,7 @@ local metric_proxy_mt = {}
metric_proxy_mt.__index = metric_proxy_mt
local function new_metric_proxy(metric_family, with_labels_proxy_fun)
- return {
+ return setmetatable({
_family = metric_family,
with_labels = function(self, ...)
return with_labels_proxy_fun(self._family, ...)
@@ -48,7 +48,7 @@ local function new_metric_proxy(metric_family, with_labels_proxy_fun)
return family:with_labels(label, ...)
end)
end
- }
+ }, metric_proxy_mt);
end
-- END of Utility: "metric proxy"