mod_prometheus: Revert part of previous commit
authorKim Alvefur <zash@zash.se>
Sun, 20 Jun 2021 13:54:23 +0200
changeset 4600 c406e4bf7ee5
parent 4599 bac3dae031ee
child 4601 c858c76d0845
mod_prometheus: Revert part of previous commit Accidentally added one too many of these asserts when adding to every module that used get_stats. This one does work with openmetrics already!
mod_prometheus/mod_prometheus.lua
--- a/mod_prometheus/mod_prometheus.lua	Sat Jun 19 12:55:14 2021 +0200
+++ b/mod_prometheus/mod_prometheus.lua	Sun Jun 20 13:54:23 2021 +0200
@@ -17,8 +17,6 @@
 local get_metric_registry = statsman.get_metric_registry;
 local collect = statsman.collect;
 
-assert(get_stats, "not compatible with trunk based on openmetrics");
-
 local function escape(text)
 	return text:gsub("\\", "\\\\"):gsub("\"", "\\\""):gsub("\n", "\\n");
 end