lib/ur: Fix panic build goroutines for failures (#7903)

This commit is contained in:
xjtdy888 2021-08-25 13:16:55 +08:00 committed by GitHub
parent 5711bacd83
commit 48796a1b60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(),