mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 23:00:58 +00:00
lib/ur: Fix panic build goroutines for failures (#7903)
This commit is contained in:
parent
5711bacd83
commit
48796a1b60
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user