Skip to content

Commit 2b90133

Browse files
committed
fmt
1 parent 8e00a4a commit 2b90133

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

crates/trie/parallel/src/proof_task.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -922,8 +922,10 @@ pub struct ProofTaskManagerHandle {
922922

923923
impl ProofTaskManagerHandle {
924924
/// Creates a new [`ProofTaskManagerHandle`] with direct access to worker pools.
925-
#[allow(private_interfaces)]
926-
pub fn new(
925+
///
926+
/// This is an internal constructor used by `spawn_proof_workers`.
927+
/// External users should call `spawn_proof_workers` to create handles.
928+
fn new(
927929
storage_work_tx: CrossbeamSender<StorageWorkerJob>,
928930
account_work_tx: CrossbeamSender<AccountWorkerJob>,
929931
active_handles: Arc<AtomicUsize>,
@@ -1034,7 +1036,8 @@ impl Drop for ProofTaskManagerHandle {
10341036

10351037
debug_assert_ne!(
10361038
previous_handles, 0,
1037-
"active_handles underflow in ProofTaskManagerHandle::drop"
1039+
"active_handles underflow in ProofTaskManagerHandle::drop (previous={})",
1040+
previous_handles
10381041
);
10391042

10401043
#[cfg(feature = "metrics")]

0 commit comments

Comments
 (0)