File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -922,8 +922,10 @@ pub struct ProofTaskManagerHandle {
922922
923923impl 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" ) ]
You can’t perform that action at this time.
0 commit comments