From 3d1aa712102072cd2b0c44ff007d06ac432909d6 Mon Sep 17 00:00:00 2001 From: demo Date: Fri, 12 Jun 2026 11:32:03 -0400 Subject: feat: use getLeakProfile to check for goroutine leaks in 'classic' --- run.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 } -- cgit v1.2.3