summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordemo <demo@antix1>2026-06-12 11:32:03 -0400
committerdemo <demo@antix1>2026-06-12 11:32:03 -0400
commit3d1aa712102072cd2b0c44ff007d06ac432909d6 (patch)
treee955b92bae71c8c264e8d350e66a0c49cd99e283
parented605f2643b369a14042527209ceef16e43bbc44 (diff)
feat: use getLeakProfile to check for goroutine leaks in 'classic'
-rw-r--r--run.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/run.go b/run.go
index cfa7829..5f56572 100644
--- a/run.go
+++ b/run.go
@@ -35,7 +35,10 @@ func run(ctx context.Context, cmd *cli.Command) error {
return err
}
- classic(u, cmd.Int("concurrency"), cmd.Int("maxurls"), cmd.Int("depth"))
+ getLeakProfile(func() {
+ classic(u, cmd.Int("concurrency"), cmd.Int("maxurls"), cmd.Int("depth"))
+ })
+
return nil
}