Update Prometheus client

This commit is contained in:
RuscalWorld 2021-12-11 14:46:51 +03:00
parent 257b6d30c0
commit a3f39f5e65
No known key found for this signature in database
GPG key ID: 6FF416979DF2B416
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -58,7 +58,7 @@ public class FabricExporter implements ModInitializer {
});
ServerLifecycleEvents.SERVER_STOPPING.register(server -> {
this.getHttpServer().stop();
this.getHttpServer().close();
this.getMetricRegistry().getTimer().cancel();
});