MCPcopy Create free account
hub / github.com/chainreactors/spray / AddPool

Method AddPool

core/runner.go:418–429  ·  view source on GitHub ↗
(task *Task)

Source from the content-addressed store, hash-verified

416}
417
418func (r *Runner) AddPool(task *Task) {
419 if _, ok := r.PoolName[task.baseUrl]; ok {
420 logs.Log.Importantf("already added pool, skip %s", task.baseUrl)
421 return
422 }
423 task.depth++
424 r.poolwg.Add(1)
425 if err := r.Pools.Invoke(task); err != nil {
426 r.poolwg.Done()
427 logs.Log.Errorf("submit pool task: %v", err)
428 }
429}
430
431func (r *Runner) newBar(total int) {
432 if r.Progress == nil {

Callers 2

RunWithBruteMethod · 0.95
AddRecursiveMethod · 0.95

Calls 2

InvokeMethod · 0.80
DoneMethod · 0.45

Tested by

no test coverage detected