Update Prometheus client
This commit is contained in:
parent
257b6d30c0
commit
a3f39f5e65
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -58,7 +58,7 @@ public class FabricExporter implements ModInitializer {
|
|||
});
|
||||
|
||||
ServerLifecycleEvents.SERVER_STOPPING.register(server -> {
|
||||
this.getHttpServer().stop();
|
||||
this.getHttpServer().close();
|
||||
this.getMetricRegistry().getTimer().cancel();
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue