diff options
| author | demo <demo@antix1> | 2026-06-12 11:32:03 -0400 |
|---|---|---|
| committer | demo <demo@antix1> | 2026-06-12 11:32:03 -0400 |
| commit | 3d1aa712102072cd2b0c44ff007d06ac432909d6 (patch) | |
| tree | e955b92bae71c8c264e8d350e66a0c49cd99e283 | |
| parent | ed605f2643b369a14042527209ceef16e43bbc44 (diff) | |
feat: use getLeakProfile to check for goroutine leaks in 'classic'
| -rw-r--r-- | run.go | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 } |
