Skip to content

Commit 520a525

Browse files
committed
refactor(prometheus): use close instead of deprecated method
1 parent b788c89 commit 520a525

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/prometheus/src/main/kotlin/dev/cubxity/plugins/metrics/prometheus/exporter/PrometheusHTTPExporter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class PrometheusHTTPExporter(private val api: UnifiedMetrics, private val driver
3535
}
3636

3737
override fun close() {
38-
server?.stop()
38+
server?.close()
3939
server = null
4040
}
4141
}

0 commit comments

Comments
 (0)