fix: fix broken import (#4880)

This commit is contained in:
Weny Xu
2024-10-25 15:09:51 +08:00
committed by GitHub
parent 32a0023010
commit 4f3afb13b6

View File

@@ -210,7 +210,7 @@ impl BuilderBuild<ThrottleableRuntime> for Builder {
}
#[cfg(tokio_unstable)]
pub fn register_collector(name: String, handle: &Handle) {
pub fn register_collector(name: String, handle: &tokio::runtime::Handle) {
let name = name.replace("-", "_");
let monitor = tokio_metrics::RuntimeMonitor::new(handle);
let collector = tokio_metrics_collector::RuntimeCollector::new(monitor, name);