# HG changeset patch # User Kim Alvefur # Date 1653924898 -7200 # Node ID fb0bf0a0864f420811f3ef6f420b0448bb77d63c # Parent e72bb50456c4bf1472f45490098bc7cd1dd82a79 luacheck: Shut up (backports 3caff1f93520, ignores module deleted in trunk) diff -r e72bb50456c4 -r fb0bf0a0864f .luacheckrc --- a/.luacheckrc Fri Jul 08 19:42:48 2022 +0200 +++ b/.luacheckrc Mon May 30 17:34:58 2022 +0200 @@ -149,6 +149,8 @@ "net/dns.lua"; "net/server_select.lua"; + "util/vcard.lua"; + "plugins/mod_storage_sql1.lua"; "spec/core_moduleapi_spec.lua"; diff -r e72bb50456c4 -r fb0bf0a0864f util/openmetrics.lua --- a/util/openmetrics.lua Fri Jul 08 19:42:48 2022 +0200 +++ b/util/openmetrics.lua Mon May 30 17:34:58 2022 +0200 @@ -38,7 +38,7 @@ 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 @@ return family:with_labels(label, ...) end) end - } + }, metric_proxy_mt); end -- END of Utility: "metric proxy"