diff --git a/src/common/base/src/runtime/runtime.rs b/src/common/base/src/runtime/runtime.rs index c1c67bf6d2784..0a7505d038de4 100644 --- a/src/common/base/src/runtime/runtime.rs +++ b/src/common/base/src/runtime/runtime.rs @@ -129,7 +129,7 @@ impl Runtime { fn tracker_builder(mem_stat: Arc) -> tokio::runtime::Builder { let mut builder = tokio::runtime::Builder::new_multi_thread(); builder - .enable_all() + .enable_time() .on_thread_start(mem_stat.on_start_thread()); builder diff --git a/src/common/base/src/runtime/runtime_tracker.rs b/src/common/base/src/runtime/runtime_tracker.rs index 2f80e517f17c7..490aff16f3fd7 100644 --- a/src/common/base/src/runtime/runtime_tracker.rs +++ b/src/common/base/src/runtime/runtime_tracker.rs @@ -597,7 +597,7 @@ mod tests { let f = TrackedFuture::create_with_mem_stat(Some(mem_stat.clone()), f); let rt = tokio::runtime::Builder::new_multi_thread() - .enable_all() + .enable_time() .build()?; let v = rt.block_on(f); @@ -665,7 +665,7 @@ mod tests { let rt = tokio::runtime::Builder::new_multi_thread() .worker_threads(5) - .enable_all() + .enable_time() .build() .unwrap();