From d46b30f155192965b507e7ff4bbc25a673847735 Mon Sep 17 00:00:00 2001 From: Yong Kang Date: Mon, 27 Oct 2025 04:46:50 +0000 Subject: [PATCH] standardise _guard to _span_guard --- crates/trie/parallel/src/proof_task.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/trie/parallel/src/proof_task.rs b/crates/trie/parallel/src/proof_task.rs index f210d1b0cc..53b3986604 100644 --- a/crates/trie/parallel/src/proof_task.rs +++ b/crates/trie/parallel/src/proof_task.rs @@ -143,7 +143,7 @@ impl ProofWorkerHandle { let storage_worker_parent = debug_span!(target: "trie::proof_task", "Storage worker tasks", ?storage_worker_count); - let _guard = storage_worker_parent.enter(); + let _span_guard = storage_worker_parent.enter(); // Spawn storage workers for worker_id in 0..storage_worker_count { @@ -157,7 +157,7 @@ impl ProofWorkerHandle { #[cfg(feature = "metrics")] let metrics = ProofTaskTrieMetrics::default(); - let _guard = parent_span.enter(); + let _span_guard = parent_span.enter(); storage_worker_loop( view_clone, task_ctx_clone, @@ -176,11 +176,11 @@ impl ProofWorkerHandle { ); } - drop(_guard); + drop(_span_guard); let account_worker_parent = debug_span!(target: "trie::proof_task", "Account worker tasks", ?account_worker_count); - let _guard = account_worker_parent.enter(); + let _span_guard = account_worker_parent.enter(); // Spawn account workers for worker_id in 0..account_worker_count { @@ -195,7 +195,7 @@ impl ProofWorkerHandle { #[cfg(feature = "metrics")] let metrics = ProofTaskTrieMetrics::default(); - let _guard = parent_span.enter(); + let _span_guard = parent_span.enter(); account_worker_loop( view_clone, task_ctx_clone, @@ -215,7 +215,7 @@ impl ProofWorkerHandle { ); } - drop(_guard); + drop(_span_guard); Self::new_handle( storage_work_tx,