From 4f3afb13b69743b153090d4fea538b9da0329e86 Mon Sep 17 00:00:00 2001 From: Weny Xu Date: Fri, 25 Oct 2024 15:09:51 +0800 Subject: [PATCH] fix: fix broken import (#4880) --- src/common/runtime/src/runtime.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/runtime/src/runtime.rs b/src/common/runtime/src/runtime.rs index aeba46f24f..cec201bc25 100644 --- a/src/common/runtime/src/runtime.rs +++ b/src/common/runtime/src/runtime.rs @@ -210,7 +210,7 @@ impl BuilderBuild 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);