diff mod_prometheus/mod_prometheus.lua @ 6393:00511ded133d

mod_prometheus: Use util.time instead of prosody.util.time, for 0.12 compatibility
author Link Mauve <linkmauve@linkmauve.fr>
date Sun, 01 Feb 2026 14:09:55 +0100
parents 268220ce0625
children
line wrap: on
line diff
--- a/mod_prometheus/mod_prometheus.lua	Sun Feb 01 14:09:49 2026 +0100
+++ b/mod_prometheus/mod_prometheus.lua	Sun Feb 01 14:09:55 2026 +0100
@@ -11,7 +11,7 @@
 local tostring = tostring;
 local t_insert = table.insert;
 local t_concat = table.concat;
-local time_now = require "prosody.util.time".now;
+local time_now = require "util.time".now;
 local statsman = require "core.statsmanager";
 local get_stats = statsman.get_stats;
 local get_metric_registry = statsman.get_metric_registry;