From e1bf1e672e809e3c3ad2a47b1d16e5bc4b72474e Mon Sep 17 00:00:00 2001 From: Simon Frei Date: Mon, 16 Aug 2021 22:47:05 +0200 Subject: [PATCH] lib/ur: Fix panic getting goroutines for failures (ref #7785) (#7890) --- lib/ur/failurereporting.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ur/failurereporting.go b/lib/ur/failurereporting.go index c98576c01..056fd3b2d 100644 --- a/lib/ur/failurereporting.go +++ b/lib/ur/failurereporting.go @@ -50,7 +50,7 @@ type FailureData struct { func FailureDataWithGoroutines(description string) FailureData { var buf *strings.Builder - pprof.NewProfile("goroutine").WriteTo(buf, 1) + pprof.Lookup("goroutine").WriteTo(buf, 1) return FailureData{ Description: description, Goroutines: buf.String(),