(config: ParallelConfig)
| 139 | |
| 140 | impl ParallelNucleiExecutor { |
| 141 | pub fn new(config: ParallelConfig) -> Self { |
| 142 | let workers = config.nuclei_workers; |
| 143 | Self { |
| 144 | config, |
| 145 | semaphore: Arc::new(Semaphore::new(workers)), |
| 146 | completed: Arc::new(AtomicUsize::new(0)), |
| 147 | total: Arc::new(AtomicUsize::new(0)), |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | /// Execute Nuclei scan with parallel batching |
| 152 | pub async fn execute_parallel( |
nothing calls this directly
no outgoing calls
no test coverage detected