From 48796a1b6019cb3bad096f684899ea7eccef1507 Mon Sep 17 00:00:00 2001 From: xjtdy888 Date: Wed, 25 Aug 2021 13:16:55 +0800 Subject: [PATCH] lib/ur: Fix panic build goroutines for failures (#7903) --- lib/ur/failurereporting.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ur/failurereporting.go b/lib/ur/failurereporting.go index 056fd3b2d..899bd0e30 100644 --- a/lib/ur/failurereporting.go +++ b/lib/ur/failurereporting.go @@ -49,8 +49,8 @@ type FailureData struct { } func FailureDataWithGoroutines(description string) FailureData { - var buf *strings.Builder - pprof.Lookup("goroutine").WriteTo(buf, 1) + var buf strings.Builder + pprof.Lookup("goroutine").WriteTo(&buf, 1) return FailureData{ Description: description, Goroutines: buf.String(),