From a3f39f5e65416519fa8a3791f9d1541743764c98 Mon Sep 17 00:00:00 2001 From: RuscalWorld Date: Sat, 11 Dec 2021 14:46:51 +0300 Subject: [PATCH] Update Prometheus client --- gradle.properties | 2 +- src/main/java/ru/ruscalworld/fabricexporter/FabricExporter.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index b6e9ad4..3b00792 100644 --- a/gradle.properties +++ b/gradle.properties @@ -12,4 +12,4 @@ archives_base_name=fabricexporter # Dependencies # check this on https://modmuss50.me/fabric.html fabric_version=0.36.0+1.16 -prometheus_version=0.10.0 +prometheus_version=0.12.0 diff --git a/src/main/java/ru/ruscalworld/fabricexporter/FabricExporter.java b/src/main/java/ru/ruscalworld/fabricexporter/FabricExporter.java index 70007e2..b6a5c79 100644 --- a/src/main/java/ru/ruscalworld/fabricexporter/FabricExporter.java +++ b/src/main/java/ru/ruscalworld/fabricexporter/FabricExporter.java @@ -58,7 +58,7 @@ public class FabricExporter implements ModInitializer { }); ServerLifecycleEvents.SERVER_STOPPING.register(server -> { - this.getHttpServer().stop(); + this.getHttpServer().close(); this.getMetricRegistry().getTimer().cancel(); });