This commit is contained in:
Yong Kang
2025-10-07 09:02:34 +00:00
parent 5779b869e9
commit 0e33837041

View File

@@ -96,8 +96,6 @@ pub struct ProofTaskManager<Factory: DatabaseProviderFactory> {
storage_worker_count: usize,
/// Maximum number of on-demand transactions for blinded node fetches.
///
/// Calculated as: `max_concurrency` - `storage_worker_count`
max_on_demand_txs: usize,
/// On-demand transaction pool for blinded node fetches.
@@ -1001,7 +999,7 @@ mod tests {
/// Ensures the storage worker pool plus on-demand pool never exceed the requested concurrency
/// when the storage worker count saturates the budget.
#[test]
fn proof_task_manager_respects_concurrency_budget() {
fn proof_task_manager_within_concurrency_limit() {
let runtime = Builder::new_multi_thread().worker_threads(1).enable_all().build().unwrap();
runtime.block_on(async {
let handle = tokio::runtime::Handle::current();